]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) (GH-8870)
authorVictor Stinner <vstinner@redhat.com>
Thu, 23 Aug 2018 10:41:35 +0000 (12:41 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Aug 2018 10:41:35 +0000 (12:41 +0200)
commit80a0ebaa8385988b1d2dbbbb71ed1f548fc32ad7
tree9083dbaaee4d7fa91ba6ff4e1413563c89ed6fca
parent042082692b7fab7361a8c9d0fb792532bb77e293
bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) (GH-8870)

bpo-34170, bpo-34207: pymain_read_conf() now sets Py_UTF8Mode to
config->utf8_mode. pymain_read_conf() calls indirectly
Py_DecodeLocale() and Py_EncodeLocale() which depend on Py_UTF8Mode.

(cherry picked from commit 89487f51b8d6ba8a55f5de0ed689e46fefe73cc9)
Modules/main.c