diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-05 11:32:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 11:32:09 (GMT) |
commit | 5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 (patch) | |
tree | d7887a24b69199e50168fda98da920b16dc3197d /Programs | |
parent | 5b10b9824780b2181158902067912ee9e7b04657 (diff) | |
download | cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.zip cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.tar.gz cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.tar.bz2 |
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 'Programs')
-rw-r--r-- | Programs/_testembed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c index 7b4d8c2..9923f8d 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -461,7 +461,7 @@ static int test_init_from_config(void) putenv("PYTHONUTF8=0"); Py_UTF8Mode = 0; - config.utf8_mode = 1; + config.preconfig.utf8_mode = 1; putenv("PYTHONPYCACHEPREFIX=env_pycache_prefix"); config.pycache_prefix = L"conf_pycache_prefix"; @@ -610,8 +610,8 @@ static int test_init_isolated(void) config.preconfig.isolated = 1; /* Set coerce_c_locale and utf8_mode to not depend on the locale */ - config.coerce_c_locale = 0; - config.utf8_mode = 0; + config.preconfig.coerce_c_locale = 0; + config.preconfig.utf8_mode = 0; /* Use path starting with "./" avoids a search along the PATH */ config.program_name = L"./_testembed"; |