Home
last modified time | relevance | path

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

/third_party/python/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.c2293 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()
Dpylifecycle.c339 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.c166 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/
Dtest_format.py423 oldloc = locale.setlocale(locale.LC_ALL)
444 locale.setlocale(locale.LC_ALL, oldloc)
Dtest_time.py568 self.oldloc = locale.setlocale(locale.LC_ALL)
571 locale.setlocale(locale.LC_ALL, self.oldloc)