You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Settign LANG=C modifies the --version behavior #78005
Ned: I let you decide if this bug should be backported to 3.7.0 final or not.
I would prefer to see this fix in 3.7.0, since Py_Main() refactoring was complex and maybe this bug hides another bug. The memset() is safe and make the code more reliable.
Activity
hroncok commentedon Jun 10, 2018
On 3.6, setting LANG to C did not affect the --version behavior:
On 3.7.0b5 it does.
My locale:
BTW I'm running Fedora builds of Python, where we have PEP-538 on 3.6 as well https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
ned-deily commentedon Jun 10, 2018
Odd. I see the same behavior with the python.org macOS builds so it's not just Fedora.
jwilk commentedon Jun 15, 2018
First bad commit is:
9454060
(bpo-29240, bpo-32030: Py_Main() re-reads config if encoding changes)
vstinner commentedon Jun 15, 2018
The bug is a regression caused by the PEP-540 (UTF-8 Mode) and my work to rewrite Py_Main(). My PR 7712 fixes the bug.
vstinner commentedon Jun 15, 2018
New changeset 6c5a4b3 by Victor Stinner in branch 'master':
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)
6c5a4b3
miss-islington commentedon Jun 15, 2018
New changeset 046da16 by Miss Islington (bot) in branch '3.7':
bpo-33824, bpo-32030: Fix pymain_read_conf() (GH-7712)
046da16
vstinner commentedon Jun 15, 2018
Ned: I let you decide if this bug should be backported to 3.7.0 final or not.
I would prefer to see this fix in 3.7.0, since Py_Main() refactoring was complex and maybe this bug hides another bug. The memset() is safe and make the code more reliable.