Ticket #18344: foo.c

File foo.c, 409 bytes (added by bhaible, 20 months ago)

test case

Line 
1#include <locale.h>
2int main ()
3{
4 setlocale (LC_ALL, "en_US.UTF-8");
5 uselocale (LC_GLOBAL_LOCALE);
6 locale_t loc_0 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
7 locale_t locale_0 = newlocale (LC_CTYPE_MASK, "de_DE.UTF-8", NULL);
8 uselocale (locale_0);
9 uselocale (LC_GLOBAL_LOCALE);
10 freelocale (locale_0);
11 locale_t loc_1 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL); // crashes
12 return 0;
13}