[3.7] bpo-34403: Fix initfsencoding() for ASCII by vstinner · Pull Request #10233 · python/cpython
* 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.
vstinner
changed the title
bpo-34403: Fix initfsencoding() for ASCII
[3.7] bpo-34403: Fix initfsencoding() for ASCII
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters