summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-05 11:32:09 (GMT)
committerGitHub <noreply@github.com>2019-03-05 11:32:09 (GMT)
commit5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 (patch)
treed7887a24b69199e50168fda98da920b16dc3197d /Python/pylifecycle.c
parent5b10b9824780b2181158902067912ee9e7b04657 (diff)
downloadcpython-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 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 7cf4a6d..dec8904 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -287,7 +287,7 @@ static const char *_C_LOCALE_WARNING =
static void
_emit_stderr_warning_for_legacy_locale(const _PyCoreConfig *core_config)
{
- if (core_config->coerce_c_locale_warn && _Py_LegacyLocaleDetected()) {
+ if (core_config->preconfig.coerce_c_locale_warn && _Py_LegacyLocaleDetected()) {
PySys_FormatStderr("%s", _C_LOCALE_WARNING);
}
}