11 if (setlocale (LC_CTYPE
, "de_DE.UTF-8") == NULL
)
13 puts ("setlocale failed");
17 int e
= regcomp (&preg
, ".*ab", REG_ICASE
);
20 regerror (e
, &preg
, buf
, sizeof (buf
));
21 printf ("regcomp = %d \"%s\"\n", e
, buf
);
25 // Incomplete character at the end of the buffer
26 e
= regexec (&preg
, "aaaaaaaaaaaa\xc4", 0, NULL
, 0);
29 regerror (e
, &preg
, buf
, sizeof (buf
));
30 printf ("regexec = %d \"%s\"\n", e
, buf
);
32 return e
!= REG_NOMATCH
;
35 #define TEST_FUNCTION do_test ()
36 #include "../test-skeleton.c"