From 95cc3ee00cfa079751ae2bb9a8d3387053b50489 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 19 Sep 2018 12:01:52 -0700 Subject: Revert "[3.7] bpo-34589: Add -X coerce_c_locale option; C locale coercion off by default (GH-9379)" (GH-9416) This reverts commit 144f1e2c6f4a24bd288c045986842c65cc289684. --- Python/pylifecycle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pylifecycle.c') diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index ef742c16c0..ba4b54864f 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -400,7 +400,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) { + if (core_config->coerce_c_locale_warn) { if (_Py_LegacyLocaleDetected()) { fprintf(stderr, "%s", _C_LOCALE_WARNING); } @@ -462,7 +462,7 @@ _coerce_default_locale_settings(const _PyCoreConfig *config, const _LocaleCoerci "Error setting LC_CTYPE, skipping C locale coercion\n"); return; } - if (config->_coerce_c_locale_warn) { + if (config->coerce_c_locale_warn) { fprintf(stderr, C_LOCALE_COERCION_WARNING, newloc); } -- cgit v1.2.1