SIGN IN SIGN UP

bpo-36763: Fix _PyRuntime.preconfig.coerce_c_locale (GH-13444)

_PyRuntime.preconfig.coerce_c_locale can now be used to
check if the C locale has been coerced.

* Fix _Py_LegacyLocaleDetected(): don't attempt to coerce the
  C locale if LC_ALL environment variable is set. Add 'warn'
  parameter: emit_stderr_warning_for_legacy_locale() must not
  the LC_ALL env var.
* _PyPreConfig_Write() sets coerce_c_locale to 0 if
  _Py_CoerceLegacyLocale() fails.
V
Victor Stinner committed
0f72147ce2b3d65235b41eddc6a57be40237b5c7
Parent: 522ccef
Committed by GitHub <noreply@github.com> on 5/20/2019, 3:16:38 PM