]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) (GH-10813)
authorVictor Stinner <vstinner@redhat.com>
Fri, 30 Nov 2018 11:19:48 +0000 (12:19 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Nov 2018 11:19:48 +0000 (12:19 +0100)
commitdf738d56fe798b3586ed71775df25bf127789cf6
tree8fb5fae1e2058b5ec5b3e02418b4796b87b6b740
parent0df1f4576ed2b12acc96cbfd732db247249ac573
bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) (GH-10813)

Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C
locale if the LC_CTYPE locale is "C".

(cherry picked from commit 55e498058faf8c97840556f6d791c2c392732dc3)
Lib/test/test_c_locale_coercion.py
Misc/NEWS.d/next/Core and Builtins/2018-11-29-23-59-52.bpo-35336.8LOz4F.rst [new file with mode: 0644]
Modules/main.c