Searched refs:oldloc (Results 1 – 11 of 11) 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 | 2045 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()
|
D | pylifecycle.c | 329 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.c | 155 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/ |
D | ios.cpp | 125 locale oldloc = loc_storage; in imbue() local 128 return oldloc; in imbue()
|
/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 | 660 oldloc = setlocale(LC_CTYPE) 667 setlocale(LC_CTYPE, oldloc)
|
/external/python/cpython3/Lib/test/ |
D | test_format.py | 423 oldloc = locale.setlocale(locale.LC_ALL) 444 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))
|