]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28180: Implementation for PEP 538 (#659)
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 11 Jun 2017 03:16:15 +0000 (13:16 +1000)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2017 03:16:15 +0000 (13:16 +1000)
commit6ea4186de32d65b1f1dc1533b6312b798d300466
treebac8387f2da20d5b6d5f74bb09fb5708d1fbd61e
parent0afbabe245e2eb6f7cef3b70531d69f2a7ad8295
bpo-28180: Implementation for PEP 538 (#659)

- new PYTHONCOERCECLOCALE config setting
- coerces legacy C locale to C.UTF-8, C.utf8 or UTF-8 by default
- always uses C.UTF-8 on Android
- uses `surrogateescape` on stdin and stdout in the coercion
  target locales
- configure option to disable locale coercion at build time
- configure option to disable C locale warning at build time
14 files changed:
Doc/using/cmdline.rst
Doc/whatsnew/3.7.rst
Lib/test/support/script_helper.py
Lib/test/test_c_locale_coercion.py [new file with mode: 0644]
Lib/test/test_capi.py
Lib/test/test_cmd_line.py
Lib/test/test_subprocess.py
Lib/test/test_sys.py
Misc/NEWS
Programs/python.c
Python/pylifecycle.c
configure
configure.ac
pyconfig.h.in