bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #26701] if there are any funny characters, * no longer matches in c


From: Lars Noschinski
Subject: [bug #26701] if there are any funny characters, * no longer matches in certain locales
Date: Sat, 08 Sep 2012 08:17:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11

Follow-up Comment #9, bug #26701 (project findutils):

Also, it seems that on my system, find does not use gnulib's fnmatch (as there
is no fnmatch.o file lying around after build), and the system fnmatch works
fine, i.e. the test program outputs "Match!" in all the locales I tested
(en_US.UTF-8, de_DE.UTF-8, C).


$ cat /home/lars/tmp/fnmatch/src/testfnm.c
#include <config.h>
#include <stdio.h>
#include "fnmatch.h"

int main(void) {
    char *str = "Die_Toten_Hosen_-_Mein_groe337ter_Feind.ogg";
    char *pat = "*Feind*";
    int r = fnmatch(pat, str, 0);

    printf("STRING: %sn", str);
    printf("PATTERN: %sn", pat);
    if (r == 0)
        printf("Match!n");
    else if (r == FNM_NOMATCH)
        printf("No match!n");
    else
        printf("Error %d", r);
    return 0;
}


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26701>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]