Adjust name of ld.so in test-container.c.
[glibc.git] / localedata / tst-setlocale.c
bloba09a4de531f932803eb0af99dabb2854934ae029
1 /* Test case by Jakub Jelinek <jakub@redhat.com>. */
2 #include <locale.h>
3 #include <stdio.h>
4 #include <string.h>
6 static int
7 do_test (void)
9 char q[30];
10 char *s;
12 setlocale (LC_ALL, "");
13 printf ("after setlocale (LC_ALL, \"\"): %s\n", setlocale(LC_NUMERIC, NULL));
15 strcpy (q, "de_DE.UTF-8");
16 setlocale (LC_NUMERIC, q);
17 printf ("after setlocale (LC_NUMERIC, \"%s\"): %s\n",
18 q, setlocale(LC_NUMERIC, NULL));
20 strcpy (q, "de_DE.ISO-8859-1");
21 s = setlocale (LC_NUMERIC, NULL);
22 printf ("after overwriting string: %s\n", s);
24 return strcmp (s, "de_DE.UTF-8") != 0;
27 #define TEST_FUNCTION do_test ()
28 #include "../test-skeleton.c"