[3.7] bpo-34403: Fix initfsencoding() for ASCII#10233
[3.7] bpo-34403: Fix initfsencoding() for ASCII#10233vstinner merged 1 commit intopython:3.7from vstinner:force_ascii37
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