1 // commit: 63f4b9f18f3674124d8bcb119739fec85e6da005
2 // uselocale(0) should not change the current locale
8 locale_t c
= newlocale(LC_ALL_MASK
, "C", 0);
11 t_error("newlocale failed\n");
16 t_error("uselocale(c) failed\n");
18 locale_t l1
= uselocale(0);
20 t_error("uselocale failed to set locale: "
21 "%p != %p\n", (void*)l1
, (void*)c
);
23 locale_t l2
= uselocale(0);
25 t_error("uselocale(0) changed locale: "
26 "%p != %p\n", (void*)l2
, (void*)l1
);