[3.7] bpo-34403: Fix initfsencoding() for ASCII by vstinner · Pull Request #10233 · python/cpython

@vstinner

* 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 vstinner changed the title bpo-34403: Fix initfsencoding() for ASCII [3.7] bpo-34403: Fix initfsencoding() for ASCII

Oct 30, 2018