-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
[3.7] bpo-34403: Fix initfsencoding() for ASCII #10233
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
Conversation
* Add _Py_GetForceASCII(): check if Python forces the usage of ASCII in Py_DecodeLocale() and Py_EncodeLocale(). * initfsencoding() now uses ASCII if _Py_GetForceASCII() is true.
|
I added "skip news" label since in practice, this change should not impact anyway: Python forces the usage of ASCII on FreeBSD and OpenIndiana if nl_langinfo(CODESET) announces ASCII or an alias of ASCII whereas mbctowcs() uses a different encoding... Python uses nl_langinfo(CODESET) to initialize the filesystem encoding, so in practice, it already uses ASCII... This change is more to make the 3.7 branch closer to the master branch. |
|
Hi! The buildbot x86-64 High Sierra 3.7 has failed when building commit 21220bb. You can take a look here: |
|
Hi! The buildbot x86-64 El Capitan 3.7 has failed when building commit 21220bb. You can take a look here: |
|
|
Don't mind this last message, I restarted the buildbots and this was running this same commit again. |
|
I fixed macOS compilation in PR #10235. |
in Py_DecodeLocale() and Py_EncodeLocale().
https://bugs.python.org/issue34403