]> granicus.if.org Git - python/commit
bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986)
authorVictor Stinner <vstinner@redhat.com>
Wed, 29 Aug 2018 07:58:12 +0000 (09:58 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Aug 2018 07:58:12 +0000 (09:58 +0200)
commit315877dc361d554bec34b4b62c270479ad36a1be
tree0783fe0301841be7a065316dfc442c64f90a3a4f
parent21786f5186383e8912e761eccd0f4ac1cca83217
bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986)

Standard streams like sys.stdout now use the "surrogateescape" error
handler, instead of "strict", on the POSIX locale (when the C locale is not
coerced and the UTF-8 Mode is disabled).

Add tests on sys.stdout.errors with LC_ALL=POSIX.
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2018-08-29-09-27-47.bpo-34485.5aJCmw.rst [new file with mode: 0644]
Python/pylifecycle.c