Searched refs:oldloc (Results 1 – 6 of 6) sorted by relevance
/third_party/python/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 | 2293 char *oldloc = NULL, *loc = NULL; in _Py_GetLocaleconvNumeric() local 2295 oldloc = setlocale(LC_CTYPE, NULL); in _Py_GetLocaleconvNumeric() 2296 if (!oldloc) { in _Py_GetLocaleconvNumeric() 2302 oldloc = _PyMem_Strdup(oldloc); in _Py_GetLocaleconvNumeric() 2303 if (!oldloc) { in _Py_GetLocaleconvNumeric() 2309 if (loc != NULL && strcmp(loc, oldloc) == 0) { in _Py_GetLocaleconvNumeric() 2345 setlocale(LC_CTYPE, oldloc); in _Py_GetLocaleconvNumeric() 2347 PyMem_Free(oldloc); in _Py_GetLocaleconvNumeric()
|
D | pylifecycle.c | 339 char *oldloc = NULL; in _Py_CoerceLegacyLocale() local 341 oldloc = _PyMem_RawStrdup(setlocale(LC_CTYPE, NULL)); in _Py_CoerceLegacyLocale() 342 if (oldloc == NULL) { in _Py_CoerceLegacyLocale() 372 setlocale(LC_CTYPE, oldloc); in _Py_CoerceLegacyLocale() 375 PyMem_RawFree(oldloc); in _Py_CoerceLegacyLocale()
|
/third_party/python/Modules/ |
D | _localemodule.c | 166 char *oldloc = NULL, *loc = NULL; in locale_decode_monetary() local 168 oldloc = setlocale(LC_CTYPE, NULL); in locale_decode_monetary() 169 if (!oldloc) { in locale_decode_monetary() 175 oldloc = _PyMem_Strdup(oldloc); in locale_decode_monetary() 176 if (!oldloc) { in locale_decode_monetary() 182 if (loc != NULL && strcmp(loc, oldloc) == 0) { in locale_decode_monetary() 228 setlocale(LC_CTYPE, oldloc); in locale_decode_monetary() 230 PyMem_Free(oldloc); in locale_decode_monetary()
|
/third_party/python/Lib/test/ |
D | test_format.py | 423 oldloc = locale.setlocale(locale.LC_ALL) 444 locale.setlocale(locale.LC_ALL, oldloc)
|
D | test_time.py | 568 self.oldloc = locale.setlocale(locale.LC_ALL) 571 locale.setlocale(locale.LC_ALL, self.oldloc)
|