Home
last modified time | relevance | path

Searched refs:oldloc (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Python/
Dfrozenmain.c28 char *oldloc = NULL; in Py_FrozenMain() local
57 oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); in Py_FrozenMain()
58 if (!oldloc) { in Py_FrozenMain()
74 setlocale(LC_ALL, oldloc); in Py_FrozenMain()
75 PyMem_RawFree(oldloc); in Py_FrozenMain()
76 oldloc = NULL; in Py_FrozenMain()
127 PyMem_RawFree(oldloc); in Py_FrozenMain()
Dfileutils.c2045 char *oldloc = NULL, *loc = NULL; in _Py_GetLocaleconvNumeric() local
2047 oldloc = setlocale(LC_CTYPE, NULL); in _Py_GetLocaleconvNumeric()
2048 if (!oldloc) { in _Py_GetLocaleconvNumeric()
2054 oldloc = _PyMem_Strdup(oldloc); in _Py_GetLocaleconvNumeric()
2055 if (!oldloc) { in _Py_GetLocaleconvNumeric()
2061 if (loc != NULL && strcmp(loc, oldloc) == 0) { in _Py_GetLocaleconvNumeric()
2097 setlocale(LC_CTYPE, oldloc); in _Py_GetLocaleconvNumeric()
2099 PyMem_Free(oldloc); in _Py_GetLocaleconvNumeric()
Dpylifecycle.c329 char *oldloc = NULL; in _Py_CoerceLegacyLocale() local
331 oldloc = _PyMem_RawStrdup(setlocale(LC_CTYPE, NULL)); in _Py_CoerceLegacyLocale()
332 if (oldloc == NULL) { in _Py_CoerceLegacyLocale()
362 setlocale(LC_CTYPE, oldloc); in _Py_CoerceLegacyLocale()
365 PyMem_RawFree(oldloc); in _Py_CoerceLegacyLocale()
/external/python/cpython3/Modules/
D_localemodule.c155 char *oldloc = NULL, *loc = NULL; in locale_decode_monetary() local
157 oldloc = setlocale(LC_CTYPE, NULL); in locale_decode_monetary()
158 if (!oldloc) { in locale_decode_monetary()
164 oldloc = _PyMem_Strdup(oldloc); in locale_decode_monetary()
165 if (!oldloc) { in locale_decode_monetary()
171 if (loc != NULL && strcmp(loc, oldloc) == 0) { in locale_decode_monetary()
217 setlocale(LC_CTYPE, oldloc); in locale_decode_monetary()
219 PyMem_Free(oldloc); in locale_decode_monetary()
/external/llvm-project/libcxx/src/
Dios.cpp125 locale oldloc = loc_storage; in imbue() local
128 return oldloc; in imbue()
/external/python/cpython2/Lib/
Dlocale.py614 oldloc = setlocale(LC_CTYPE)
620 setlocale(LC_CTYPE, oldloc)
/external/libcxx/src/
Dios.cpp142 locale oldloc = loc_storage; in imbue() local
145 return oldloc; in imbue()
/external/python/cpython3/Lib/
Dlocale.py660 oldloc = setlocale(LC_CTYPE)
667 setlocale(LC_CTYPE, oldloc)
/external/python/cpython3/Lib/test/
Dtest_format.py423 oldloc = locale.setlocale(locale.LC_ALL)
444 locale.setlocale(locale.LC_ALL, oldloc)
Dtest_time.py566 self.oldloc = locale.setlocale(locale.LC_ALL)
569 locale.setlocale(locale.LC_ALL, self.oldloc)
/external/python/cpython2/Lib/plat-mac/
Dpimp.py827 oldloc = DEFAULT_INSTALLDIR
830 install_renames.append((oldloc, newloc))