glibc/tests/Regression/bz819430-fnmatch-fails-when-wildcard-is-applied-on/arf.c

14 lines
260 B
C
Raw Normal View History

/* taken from bugzilla and modified */
#include <fnmatch.h>
#include <locale.h>
int main()
{
int flags = 0;
char *pattern = "*.csv";
char *string = "\366.csv";
setlocale (LC_ALL, "en_US.UTF-8");
return fnmatch (pattern, string, flags);
}