Home
last modified time | relevance | path

Searched refs:oldloc (Results 1 – 10 of 10) 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/boost/libs/lexical_cast/test/
Dlexical_cast_float_types_test.cpp440 std::locale oldloc; member
441 ~restore_oldloc() { std::locale::global(oldloc); } in ~restore_oldloc()
477 std::locale const& oldloc = guard.oldloc; in test_conversion_from_to_float() local
479 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_float()
Dlexical_cast_integral_types_test.cpp407 std::locale oldloc; member
408 ~restore_oldloc() { std::locale::global(oldloc); } in ~restore_oldloc()
487 std::locale const& oldloc = guard.oldloc; in test_conversion_from_to_integral() local
489 std::string grouping1 = BOOST_USE_FACET(numpunct, oldloc).grouping(); in test_conversion_from_to_integral()
/third_party/boost/boost/xpressive/detail/dynamic/
Dparser_traits.hpp84 locale_type oldloc = this->traits().imbue(loc); in imbue() local
87 return oldloc; in imbue()
/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)
/third_party/boost/boost/xpressive/
Dregex_compiler.hpp83 locale_type oldloc = this->traits_.imbue(loc); in imbue() local
85 return oldloc; in imbue()