diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-05 12:32:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 12:32:09 +0100 |
commit | 5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 (patch) | |
tree | d7887a24b69199e50168fda98da920b16dc3197d /Python/sysmodule.c | |
parent | 5b10b9824780b2181158902067912ee9e7b04657 (diff) | |
download | cpython-git-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.tar.gz |
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
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 4b122805d7..50ba1a71e4 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2181,7 +2181,7 @@ make_flags(void) SetFlag(config->use_hash_seed == 0 || config->hash_seed != 0); SetFlag(config->preconfig.isolated); PyStructSequence_SET_ITEM(seq, pos++, PyBool_FromLong(config->dev_mode)); - SetFlag(config->utf8_mode); + SetFlag(config->preconfig.utf8_mode); #undef SetFlag if (PyErr_Occurred()) { |