]> granicus.if.org Git - python/commit
bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260)
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 18 Jun 2017 02:29:42 +0000 (12:29 +1000)
committerGitHub <noreply@github.com>
Sun, 18 Jun 2017 02:29:42 +0000 (12:29 +1000)
commiteb81795d7d3a8c898fa89a376d63fc3bbfb9a081
treed991860d1d359c87dc4b609c421ad746fbc06d21
parent6a98a04e21fc3209b2170c3930ce4488e89680e3
bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260)

- removes PY_WARN_ON_C_LOCALE build time flag
- locale coercion and compatibility warnings are now always compiled
  in, but are off by default
- adds PYTHONCOERCECLOCALE=warn runtime option to aid in
  debugging potentially locale related compatibility problems

Due to not-yet-resolved test failures on *BSD systems (including
Mac OS X), this also temporarily disables UTF-8 as a locale coercion
target, and skips testing the interpreter's behavior in the POSIX locale.
Doc/using/cmdline.rst
Doc/whatsnew/3.7.rst
Lib/test/test_c_locale_coercion.py
Modules/main.c
Python/pylifecycle.c