Home
last modified time | relevance | path

Searched refs:saved_locale (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Modules/
Dreadline.c908 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in setup_readline() local
909 if (!saved_locale) in setup_readline()
993 RESTORE_LOCALE(saved_locale) in setup_readline()
1128 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in call_readline() local
1129 if (!saved_locale) in call_readline()
1146 RESTORE_LOCALE(saved_locale) in call_readline()
1155 RESTORE_LOCALE(saved_locale) in call_readline()
1189 RESTORE_LOCALE(saved_locale) in call_readline()
/external/python/cpython3/Modules/
Dreadline.c1075 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in setup_readline() local
1076 if (!saved_locale) in setup_readline()
1158 RESTORE_LOCALE(saved_locale) in setup_readline()
1246 char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in call_readline() local
1247 if (!saved_locale) in call_readline()
1264 RESTORE_LOCALE(saved_locale) in call_readline()
1273 RESTORE_LOCALE(saved_locale) in call_readline()
1307 RESTORE_LOCALE(saved_locale) in call_readline()
/external/python/cpython2/Lib/test/
Dtest_strftime.py64 saved_locale = setlocale(LC_TIME)
66 self.addCleanup(setlocale, LC_TIME, saved_locale)
/external/python/cpython3/Lib/test/
Dtest_strftime.py62 saved_locale = setlocale(LC_TIME)
64 self.addCleanup(setlocale, LC_TIME, saved_locale)
/external/python/cpython2/Python/
Dpythonrun.c176 char *saved_locale, *loc_codeset; in Py_InitializeEx() local
312 saved_locale = strdup(setlocale(LC_CTYPE, NULL)); in Py_InitializeEx()
331 setlocale(LC_CTYPE, saved_locale); in Py_InitializeEx()
332 free(saved_locale); in Py_InitializeEx()