Lines Matching refs:locale
25 #include <locale.h>
72 const char *locale;
81 test_wcsrtombs_1(const char *locale, struct wcsrtombs_test *test)
87 t = test_start("wcsrtombs (locale %s)", locale);
89 v = setlocale(LC_ALL, locale);
93 if (strcmp(v, locale) != 0) {
94 test_failed(t, "setlocale got %s instead of %s", v, locale);
121 test_wcsrtombs_l(const char *locale, struct wcsrtombs_test *test)
128 t = test_start("wcsrtombs_l (locale %s)", locale);
138 loc = newlocale(LC_ALL_MASK, locale, NULL);
167 test_wcsrtombs_thr_iter(test_t t, const char *locale,
173 loc = newlocale(LC_ALL_MASK, locale, NULL);
208 for (int i = 0; locales[i].locale != NULL; i++) {
209 test_wcsrtombs_thr_iter(t, locales[i].locale,
352 for (int i = 0; locales[i].locale != NULL; i++) {
353 test_wcsrtombs_1(locales[i].locale, locales[i].test);
354 test_wcsrtombs_l(locales[i].locale, locales[i].test);