universally apply our cflags (no vsx, no altivec..)
[glibc.git] / localedata / tst-setlocale.c
1 #include <locale.h>
2 #include <stdio.h>
3 #include <string.h>
4
5 static int
6 do_test (void)
7 {
8 char q[30];
9 char *s;
10
11 setlocale (LC_ALL, "");
12 printf ("after setlocale (LC_ALL, \"\"): %s\n", setlocale(LC_NUMERIC, NULL));
13
14 strcpy (q, "de_DE.UTF-8");
15 setlocale (LC_NUMERIC, q);
16 printf ("after setlocale (LC_NUMERIC, \"%s\"): %s\n",
17 q, setlocale(LC_NUMERIC, NULL));
18
19 strcpy (q, "de_DE.ISO-8859-1");
20 s = setlocale (LC_NUMERIC, NULL);
21 printf ("after overwriting string: %s\n", s);
22
23 return strcmp (s, "de_DE.UTF-8") != 0;
24 }
25
26 #define TEST_FUNCTION do_test ()
27 #include "../test-skeleton.c"