]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34403: Fix initfsencoding() for ASCII (GH-10233)
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Oct 2018 11:59:20 +0000 (12:59 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 11:59:20 +0000 (12:59 +0100)
commit21220bbe65108f5a763ead24a6b572f80d84c9e2
tree9461c9327a7b4129f2a67dd256d1e23993cc906b
parent58f7bf3a892031616a6b06ef4b8d36e2ebec172b
bpo-34403: Fix initfsencoding() for ASCII (GH-10233)

* 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.
Include/fileutils.h
Python/fileutils.c
Python/pylifecycle.c