| 1 | #include <langinfo.h> |
|---|---|
| 2 | #include <locale.h> |
| 3 | #include <stdio.h> |
| 4 | #include <string.h> |
| 5 | |
| 6 | static int |
| 7 | do_test (void) |
| 8 | { |
| 9 | const char *s = nl_langinfo (_NL_LOCALE_NAME (LC_CTYPE)); |
| 10 | if (s == NULL || strcmp (s, "C") != 0) |
| 11 | { |
| 12 | printf (format: "incorrect locale name returned: %s, expected \"C\"\n", s); |
| 13 | return 1; |
| 14 | } |
| 15 | |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | #define TEST_FUNCTION do_test () |
| 20 | #include "../test-skeleton.c" |
| 21 |
