New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settign LANG=C modifies the --version behavior #78005
Comments
On 3.6, setting LANG to C did not affect the --version behavior: $ python3.6 --version
Python 3.6.5
$ LANG=C python3.6 --version
Python 3.6.5 On 3.7.0b5 it does. $ python3.7 --version
Python 3.7.0b5
$ LANG=C python3.7 --version
Python 3.7.0b5 (default, Jun 1 2018, 03:54:41)
[GCC 8.1.1 20180502 (Red Hat 8.1.1-1)] My locale: LANG=cs_CZ.utf8
LC_CTYPE="cs_CZ.utf8"
LC_NUMERIC="cs_CZ.utf8"
LC_TIME="cs_CZ.utf8"
LC_COLLATE="cs_CZ.utf8"
LC_MONETARY="cs_CZ.utf8"
LC_MESSAGES="cs_CZ.utf8"
LC_PAPER="cs_CZ.utf8"
LC_NAME="cs_CZ.utf8"
LC_ADDRESS="cs_CZ.utf8"
LC_TELEPHONE="cs_CZ.utf8"
LC_MEASUREMENT="cs_CZ.utf8"
LC_IDENTIFICATION="cs_CZ.utf8"
LC_ALL= 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 |
Odd. I see the same behavior with the python.org macOS builds so it's not just Fedora. |
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. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: