Home
last modified time | relevance | path

Searched refs:oldloc (Results 1 – 10 of 10) 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.c1929 char *oldloc = NULL, *loc = NULL; in _Py_GetLocaleconvNumeric() local
1931 oldloc = setlocale(LC_CTYPE, NULL); in _Py_GetLocaleconvNumeric()
1932 if (!oldloc) { in _Py_GetLocaleconvNumeric()
1938 oldloc = _PyMem_Strdup(oldloc); in _Py_GetLocaleconvNumeric()
1939 if (!oldloc) { in _Py_GetLocaleconvNumeric()
1945 if (loc != NULL && strcmp(loc, oldloc) == 0) { in _Py_GetLocaleconvNumeric()
1974 setlocale(LC_CTYPE, oldloc); in _Py_GetLocaleconvNumeric()
1976 PyMem_Free(oldloc); in _Py_GetLocaleconvNumeric()
Dpylifecycle.c333 char *oldloc = NULL; in _Py_CoerceLegacyLocale() local
335 oldloc = _PyMem_RawStrdup(setlocale(LC_CTYPE, NULL)); in _Py_CoerceLegacyLocale()
336 if (oldloc == NULL) { in _Py_CoerceLegacyLocale()
366 setlocale(LC_CTYPE, oldloc); in _Py_CoerceLegacyLocale()
369 PyMem_RawFree(oldloc); in _Py_CoerceLegacyLocale()
/external/python/cpython3/Modules/
D_localemodule.c141 char *oldloc = NULL, *loc = NULL; in locale_decode_monetary() local
143 oldloc = setlocale(LC_CTYPE, NULL); in locale_decode_monetary()
144 if (!oldloc) { in locale_decode_monetary()
150 oldloc = _PyMem_Strdup(oldloc); in locale_decode_monetary()
151 if (!oldloc) { in locale_decode_monetary()
157 if (loc != NULL && strcmp(loc, oldloc) == 0) { in locale_decode_monetary()
195 setlocale(LC_CTYPE, oldloc); in locale_decode_monetary()
197 PyMem_Free(oldloc); in locale_decode_monetary()
/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.py658 oldloc = setlocale(LC_CTYPE)
665 setlocale(LC_CTYPE, oldloc)
/external/python/cpython3/Lib/test/
Dtest_format.py422 oldloc = locale.setlocale(locale.LC_ALL)
440 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))