<sys/platform/x86.h>: Add AVX-VNNI-INT8 support
[glibc.git] / localedata / tst-setlocale.c
blob4b15100172cb310f821eb31efbd779882cca2daa
1 #include <locale.h>
2 #include <stdio.h>
3 #include <string.h>
5 static int
6 do_test (void)
8 char q[30];
9 char *s;
11 setlocale (LC_ALL, "");
12 printf ("after setlocale (LC_ALL, \"\"): %s\n", setlocale(LC_NUMERIC, NULL));
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));
19 strcpy (q, "de_DE.ISO-8859-1");
20 s = setlocale (LC_NUMERIC, NULL);
21 printf ("after overwriting string: %s\n", s);
23 return strcmp (s, "de_DE.UTF-8") != 0;
26 #define TEST_FUNCTION do_test ()
27 #include "../test-skeleton.c"