cpython/Include/internal
Victor Stinner 02e6bf7f20
bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606)
locale.localeconv() now sets temporarily the LC_CTYPE locale to the
LC_MONETARY locale if the two locales are different and monetary
strings are non-ASCII. This temporary change affects other threads.

Changes:

* locale.localeconv() can now set LC_CTYPE to LC_MONETARY to decode
  monetary fields.
* Add LocaleInfo.grouping_buffer: copy localeconv() grouping string
  since it can be replaced anytime if a different thread calls
  localeconv().
* _Py_GetLocaleconvNumeric() now requires a "struct lconv *"
  structure, so locale.localeconv() now longer calls localeconv()
  twice. Moreover, the function now requires all arguments to be
  non-NULL.
* Rename STATIC_LOCALE_INFO_INIT to LocaleInfo_STATIC_INIT.
* Move _Py_GetLocaleconvNumeric() definition from fileutils.h
  to pycore_fileutils.h. pycore_fileutils.h now includes locale.h.
* The _locale module is now built with Py_BUILD_CORE defined.
2018-11-20 16:20:16 +01:00
..
pycore_accu.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_atomic.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_ceval.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_condvar.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_context.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_fileutils.h bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) 2018-11-20 16:20:16 +01:00
pycore_getopt.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_gil.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_hamt.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00
pycore_pathconfig.h bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) 2018-11-17 20:41:48 -08:00
pycore_pyhash.h bpo-35081: Rename internal headers (GH-10275) 2018-11-12 16:53:38 +01:00
pycore_pylifecycle.h bpo-35081: Rename internal headers (GH-10275) 2018-11-12 16:53:38 +01:00
pycore_pymem.h bpo-35081: Make some _PyGC macros internal (GH-10507) 2018-11-13 12:52:18 +01:00
pycore_pystate.h bpo-35081: Rename internal headers (GH-10275) 2018-11-12 16:53:38 +01:00
pycore_warnings.h bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363) 2018-11-09 13:03:37 +01:00