]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Jun 2018 22:26:29 +0000 (15:26 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Jun 2018 22:26:29 +0000 (15:26 -0700)
commit046da1669598d6112d0a6fb056081f3eb5a4d4e7
tree4ee813adb3b7e6f80b509bde2ebb9211103675f5
parentba67b4f7cb87035e24098f52cf9711b9e793e033
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)

Fix "LC_ALL=C python3.7 -V": reset properly the command line parser
when the encoding changes after reading the Python configuration.

Fix pymain_read_conf(): use memset(0) to reset properly cmdline.
(cherry picked from commit 6c5a4b315664f21bffc36ff6987fb4c4d1590897)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Misc/NEWS.d/next/Core and Builtins/2018-06-15-19-39-06.bpo-33824.DfWHT3.rst [new file with mode: 0644]
Modules/main.c