Searched refs:oldloc (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Python/ |
D | frozenmain.c | 28 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()
|
D | fileutils.c | 1929 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()
|
D | pylifecycle.c | 333 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.c | 141 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/ |
D | locale.py | 614 oldloc = setlocale(LC_CTYPE) 620 setlocale(LC_CTYPE, oldloc)
|
/external/libcxx/src/ |
D | ios.cpp | 142 locale oldloc = loc_storage; in imbue() local 145 return oldloc; in imbue()
|
/external/python/cpython3/Lib/ |
D | locale.py | 658 oldloc = setlocale(LC_CTYPE) 665 setlocale(LC_CTYPE, oldloc)
|
/external/python/cpython3/Lib/test/ |
D | test_format.py | 422 oldloc = locale.setlocale(locale.LC_ALL) 440 locale.setlocale(locale.LC_ALL, oldloc)
|
D | test_time.py | 566 self.oldloc = locale.setlocale(locale.LC_ALL) 569 locale.setlocale(locale.LC_ALL, self.oldloc)
|
/external/python/cpython2/Lib/plat-mac/ |
D | pimp.py | 827 oldloc = DEFAULT_INSTALLDIR 830 install_renames.append((oldloc, newloc))
|