]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) (GH-8981)
authorVictor Stinner <vstinner@redhat.com>
Tue, 28 Aug 2018 23:13:29 +0000 (01:13 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Aug 2018 23:13:29 +0000 (01:13 +0200)
commit98c49c6ab239875e35a3c271bc8fabde6c9be804
tree4d3a7017dd1582e344ca478d5b769dfc7a647090
parent65ef7425a32ee411d8047a4fad0fc6bb9ff733b1
bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) (GH-8981)

* _Py_InitializeCore() now sets the LC_CTYPE locale to the user
  preferred locale before checking if the C locale should be coerced
  or not in _PyCoreConfig_Read().
* Fix pymain_read_conf(): remember if the C locale has been coerced
  when the configuration should be read again if the encoding has
  changed.

(cherry picked from commit 2c8ddcf4f14f3e4c87a6fe6678ab5ad09130c6ab)
Modules/main.c
Python/pylifecycle.c