1 /* Test case for setlocale vs uselocale (LC_GLOBAL_LOCALE) bug. */
11 locale_t loc_new
, loc_old
;
13 int first
= !!isalpha(0xE4);
15 setlocale (LC_ALL
, "de_DE");
17 int global_de
= !!isalpha(0xE4);
19 loc_new
= newlocale (1 << LC_ALL
, "C", 0);
20 loc_old
= uselocale (loc_new
);
22 int used_c
= !!isalpha(0xE4);
26 int used_global
= !!isalpha(0xE4);
28 printf ("started %d, after setlocale %d\n", first
, global_de
);
29 printf ("after uselocale %d, after LC_GLOBAL_LOCALE %d\n",
33 return !(used_c
== first
&& used_global
== global_de
);
37 #define TEST_FUNCTION do_test ()
38 #include "test-skeleton.c"