]>
Commit | Line | Data |
---|---|---|
672fd41b UD |
1 | /* Test case by Jim Meyering <jim@meyering.net>. */ |
2 | #include <locale.h> | |
3 | #include <stdio.h> | |
4 | #include <string.h> | |
5 | #include <regex.h> | |
0e37b504 | 6 | #include <wchar.h> |
672fd41b UD |
7 | |
8 | int | |
9 | main (void) | |
10 | { | |
11 | struct re_pattern_buffer regex; | |
12 | struct re_registers regs; | |
13 | const char *s; | |
14 | int match; | |
15 | int result = 0; | |
16 | ||
17 | memset (®ex, '\0', sizeof (regex)); | |
18 | ||
19 | setlocale (LC_ALL, "de_DE.ISO-8859-1"); | |
20 | fwide (stdout, -1); | |
21 | ||
22 | re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_DEBUG); | |
23 | ||
24 | puts ("in C locale"); | |
25 | setlocale (LC_ALL, "C"); | |
26 |