]> granicus.if.org Git - python/commit
bpo-36142: Add _PyPreConfig.utf8_mode (GH-12174)
authorVictor Stinner <vstinner@redhat.com>
Tue, 5 Mar 2019 11:32:09 +0000 (12:32 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2019 11:32:09 +0000 (12:32 +0100)
commit5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82
treed7887a24b69199e50168fda98da920b16dc3197d
parent5b10b9824780b2181158902067912ee9e7b04657
bpo-36142: Add _PyPreConfig.utf8_mode (GH-12174)

* Move following fields from _PyCoreConfig to _PyPreConfig:

  * coerce_c_locale
  * coerce_c_locale_warn
  * legacy_windows_stdio
  * utf8_mode

* _PyPreConfig_ReadFromArgv() is now responsible to choose the
  filesystem encoding
* _PyPreConfig_Write() now sets the LC_CTYPE locale
Include/cpython/coreconfig.h
Include/internal/pycore_coreconfig.h
Programs/_testembed.c
Python/coreconfig.c
Python/preconfig.c
Python/pylifecycle.c
Python/sysmodule.c