]> granicus.if.org Git - python/commit
bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979)
authorVictor Stinner <vstinner@redhat.com>
Tue, 28 Aug 2018 22:16:53 +0000 (00:16 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Aug 2018 22:16:53 +0000 (00:16 +0200)
commit2c8ddcf4f14f3e4c87a6fe6678ab5ad09130c6ab
tree30ec358a0f7947a398b2ed25eb416c92acaff2b6
parent9e4994d410970fb4e75168401d159ba47a8f7108
bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979)

* _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.
Modules/main.c
Python/coreconfig.c
Python/pylifecycle.c