◐ Shell
clean mode source ↗

bpo-33824, bpo-32030: Fix pymain_read_conf() by vstinner · Pull Request #7712 · python/cpython

ned-deily

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.

ned-deily

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 15, 2018
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 6c5a4b3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

miss-islington added a commit that referenced this pull request

Jun 15, 2018
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 6c5a4b3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>