]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/bug-regex1.c
Fix posix/tst-regex by using a dedicated input-file.
[thirdparty/glibc.git] / posix / bug-regex1.c
CommitLineData
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
8int
9main (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 (&regex, '\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