Home
last modified time | relevance | path

Searched refs:setlocale (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/third_party/python/Lib/test/
Dtest__locale.py1 from _locale import (setlocale, LC_ALL, LC_CTYPE, LC_NUMERIC, localeconv, Error)
36 old_locale = locale.setlocale(locale.LC_ALL)
41 locale.setlocale(locale.LC_ALL, loc)
54 locale.setlocale(locale.LC_ALL, old_locale)
82 self.oldlocale = setlocale(LC_ALL)
85 setlocale(LC_ALL, self.oldlocale)
95 set_locale = setlocale(LC_NUMERIC)
114 setlocale(LC_NUMERIC, loc)
115 setlocale(LC_CTYPE, loc)
130 setlocale(LC_NUMERIC, loc)
[all …]
Dtest_locale.py31 oldlocale = locale.setlocale(locale.LC_NUMERIC)
34 locale.setlocale(locale.LC_NUMERIC, tloc)
43 locale.setlocale(locale.LC_NUMERIC, oldlocale)
46 oldlocale = locale.setlocale(self.locale_type)
47 self.addCleanup(locale.setlocale, self.locale_type, oldlocale)
48 locale.setlocale(self.locale_type, self.enUS_locale)
546 locale.setlocale(locale.LC_ALL)
547 locale.setlocale(locale.LC_TIME)
548 locale.setlocale(locale.LC_CTYPE)
549 locale.setlocale(locale.LC_COLLATE)
[all …]
/third_party/musl/libc-test/src/common/
Dutf8.c9 setlocale(LC_CTYPE, "C.UTF-8") || in t_setutf8()
10 setlocale(LC_CTYPE, "POSIX.UTF-8") || in t_setutf8()
11 setlocale(LC_CTYPE, "en_US.UTF-8") || in t_setutf8()
12 setlocale(LC_CTYPE, "en_GB.UTF-8") || in t_setutf8()
13 setlocale(LC_CTYPE, "en.UTF-8") || in t_setutf8()
14 setlocale(LC_CTYPE, "UTF-8") || in t_setutf8()
15 setlocale(LC_CTYPE, "") ); in t_setutf8()
/third_party/musl/libc-test/src/functionalext/locale/
Dlanginfo.c33 char *lo = setlocale(LC_TIME, ""); in langinfo_0100()
38 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in langinfo_0100()
55 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0200()
74 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0300()
79 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in nl_langinfo_0300()
96 char *lo = setlocale(LC_MESSAGES, "zh_CN.UTF-8"); in nl_langinfo_0400()
113 char *lo = setlocale(LC_CTYPE, ""); in nl_langinfo_0500()
121 lo = setlocale(LC_TIME, ""); in nl_langinfo_0500()
Dsetlocale.c56 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100()
76 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200()
92 const char *locale1 = setlocale(PARAM_ERROR_VALUE_1, NULL); in setlocale_0300()
97 const char *locale2 = setlocale(PARAM_ERROR_VALUE_2, NULL); in setlocale_0300()
113 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400()
130 char *rev = setlocale(LC_ALL, "C"); in setlocale_0500()
136 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500()
159 char *locale = setlocale(LC_ALL, ""); in setlocale_0600()
Dnewlocale.c37 char *lo = setlocale(LC_ALL, "C"); in newlocale_0100()
58 char *lo = setlocale(LC_ALL, "C"); in newlocale_0200()
80 char *lo = setlocale(LC_ALL, "C"); in newlocale_0300()
/third_party/musl/libc-test/src/functionalext/supplement/locale/
Dlanginfo_sup.c33 char *lo = setlocale(LC_TIME, ""); in langinfo_0100()
38 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in langinfo_0100()
55 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0200()
74 char *lo = setlocale(LC_TIME, ""); in nl_langinfo_0300()
79 lo = setlocale(LC_TIME, "zh_CN.UTF-8"); in nl_langinfo_0300()
96 char *lo = setlocale(LC_MESSAGES, "zh_CN.UTF-8"); in nl_langinfo_0400()
113 char *lo = setlocale(LC_CTYPE, ""); in nl_langinfo_0500()
121 lo = setlocale(LC_TIME, ""); in nl_langinfo_0500()
Dsetlocale_sup.c49 const char *locale = setlocale(LcArry[i], NULL); in setlocale_0100()
69 const char *locale = setlocale(LcArry[i], "C"); in setlocale_0200()
85 const char *locale1 = setlocale(PARAM_ERROR_VALUE_1, NULL); in setlocale_0300()
90 const char *locale2 = setlocale(PARAM_ERROR_VALUE_2, NULL); in setlocale_0300()
106 const char *locale = setlocale(LcArry[i], ""); in setlocale_0400()
123 char *rev = setlocale(LC_ALL, "C"); in setlocale_0500()
129 const char *locale = setlocale(LcArry[i], "en_ZA"); in setlocale_0500()
152 char *locale = setlocale(LC_ALL, ""); in setlocale_0600()
Dnewlocale_sup.c35 char *lo = setlocale(LC_ALL, "C"); in newlocale_0100()
56 char *lo = setlocale(LC_ALL, "C"); in newlocale_0200()
78 char *lo = setlocale(LC_ALL, "C"); in newlocale_0300()
/third_party/gettext/gettext-tools/m4/
Dsetlocale.m41 # setlocale.m4 serial 4 (gettext-0.18)
7 # Check for setlocale declaration.
10 AC_MSG_CHECKING([for setlocale declaration])
20 char *setlocale (int category, char *locale);
22 char *setlocale();
25 gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *loca…
30 [Define as const if the declaration of setlocale() needs const.])
/third_party/glib/glib/tests/
Ddate.c223 if (setlocale (LC_ALL, "th_TH") == NULL) in test_parse_locale_change()
231 setlocale (LC_ALL, "C"); in test_parse_locale_change()
237 setlocale (LC_ALL, ""); in test_parse_locale_change()
247 if (setlocale (LC_ALL, "pl_PL") == NULL) in test_month_substring()
269 setlocale (LC_ALL, ""); in test_month_substring()
330 oldlocale = g_strdup (setlocale (LC_ALL, NULL)); in test_month_names()
342 setlocale (LC_ALL, "en_GB.utf-8"); in test_month_names()
346 if (strstr (setlocale (LC_ALL, NULL), "en_GB") != NULL) in test_month_names()
358 setlocale (LC_ALL, "de_DE.utf-8"); in test_month_names()
362 if (strstr (setlocale (LC_ALL, NULL), "de_DE") != NULL) in test_month_names()
[all …]
/third_party/musl/libc-test/src/functional/
Dmbc.c31 setlocale(LC_CTYPE, "en_US.UTF-8") || in main()
32 setlocale(LC_CTYPE, "en_GB.UTF-8") || in main()
33 setlocale(LC_CTYPE, "en.UTF-8") || in main()
34 setlocale(LC_CTYPE, "POSIX.UTF-8") || in main()
35 setlocale(LC_CTYPE, "C.UTF-8") || in main()
36 setlocale(LC_CTYPE, "UTF-8") || in main()
37 setlocale(LC_CTYPE, "") ); in main()
Dswprintf.c105 setlocale(LC_CTYPE, "en_US.UTF-8") || in main()
106 setlocale(LC_CTYPE, "en_GB.UTF-8") || in main()
107 setlocale(LC_CTYPE, "en.UTF-8") || in main()
108 setlocale(LC_CTYPE, "POSIX.UTF-8") || in main()
109 setlocale(LC_CTYPE, "C.UTF-8") || in main()
110 setlocale(LC_CTYPE, "UTF-8") || in main()
111 setlocale(LC_CTYPE, "") ); in main()
/third_party/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc94 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
96 setlocale(LC_CTYPE, "en_US.utf8"); in TEST()
118 setlocale(LC_CTYPE, old_locale); in TEST()
123 char* old_locale = setlocale(LC_CTYPE, nullptr); in TEST()
124 setlocale(LC_CTYPE, "POSIX"); in TEST()
126 setlocale(LC_CTYPE, old_locale); in TEST()
/third_party/gettext/gettext-tools/tests/
Dplural-1-prg.c38 #undef setlocale
40 # define setlocale fake_setlocale macro
41 extern char *setlocale (int category, SETLOCALE_CONST char *locale);
50 if (setlocale (LC_ALL, "") == NULL) in main()
Dformat-c-3-prg.c42 #undef setlocale
44 # define setlocale fake_setlocale macro
45 extern char *setlocale (int category, SETLOCALE_CONST char *locale);
65 if (setlocale (LC_ALL, "") == NULL) in main()
Dtstngettext.c44 # undef setlocale
45 # define setlocale fake_setlocale macro
46 extern char *setlocale (int category, SETLOCALE_CONST char *locale);
84 setlocale (LC_ALL, ""); in main()
128 setlocale (LC_ALL, ""); in main()
Dformat-c-4-prg.c42 #undef setlocale
44 # define setlocale fake_setlocale macro
45 extern char *setlocale (int category, SETLOCALE_CONST char *locale);
65 if (setlocale (LC_ALL, "") == NULL) in main()
Dtstgettext.c46 # undef setlocale
47 # define setlocale fake_setlocale macro
48 extern char *setlocale (int category, SETLOCALE_CONST char *locale);
95 setlocale (LC_ALL, ""); in main()
151 setlocale (LC_ALL, ""); in main()
Dintl-setlocale-140 ${MSGFMT} -o in-sl-1/de_DE/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-setlocale-1-1.po
41 ${MSGFMT} -o in-sl-1/fr_FR/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-setlocale-1-2.po
52 ../intl-setlocale-1-prg > in-sl-1.out || Exit 1
/third_party/gettext/gettext-tools/system-tests/
DMakefile.am67 intl-setlocale-1 intl-setlocale-2 \
73 … testlocale intl-1-prg intl-3-prg intl-4-prg intl-5-prg intl-setlocale-1-prg intl-setlocale-2-prg …
79 intl_setlocale_1_prg_SOURCES = intl-setlocale-1-prg.c
80 intl_setlocale_2_prg_SOURCES = intl-setlocale-2-prg.c
/third_party/gettext/gettext-runtime/intl/
Dsetlocale.c59 # undef setlocale
663 result = setlocale (category, locale); in setlocale_unixlike()
694 result = setlocale (category, llCC_buf); in setlocale_unixlike()
711 result = setlocale (category, language_table[i].english); in setlocale_unixlike()
774 result = setlocale (category, buf); in setlocale_unixlike()
790 setlocale (category, language_table[i].english); in setlocale_unixlike()
811 char *result = setlocale (category, locale); in setlocale_unixlike()
836 # define setlocale setlocale_unixlike macro
839 # define setlocale_unixlike setlocale
1413 saved_locale = setlocale (LC_ALL, NULL); in libintl_setlocale()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/ctype/
Diswalhpa.c33 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0100()
54 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0200()
75 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0300()
96 setlocale(LC_CTYPE, "UTF-8"); in iswalhpa_0400()
D__ctype_get_mb_cur_max.c31 setlocale(LC_ALL, ".1252"); in __ctype_get_mb_cur_max_0100()
44 setlocale(LC_CTYPE, "zh_CN.utf8"); in __ctype_get_mb_cur_max_0200()
57 setlocale(LC_ALL, ".936"); in __ctype_get_mb_cur_max_0300()
/third_party/glib/tests/
Dunicode-caseconv.c20 char *current_locale = setlocale (LC_CTYPE, NULL); in main()
48 setlocale (LC_CTYPE, locale); in main()
49 current_locale = setlocale (LC_CTYPE, NULL); in main()

12345678910>>...16