]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42208: Add _Py_GetLocaleEncoding() (GH-23050)
authorVictor Stinner <vstinner@python.org>
Sat, 31 Oct 2020 00:02:09 +0000 (01:02 +0100)
committerGitHub <noreply@github.com>
Sat, 31 Oct 2020 00:02:09 +0000 (01:02 +0100)
commit710e82630775774dceba5e8f24b1b10e6dfaf9b7
treeb4415da3ed5f8bc2ad2a52ec9a8544b9e50d975f
parent06f8c3328dcd81c84d1ee2b3a57b5381dcb38482
bpo-42208: Add _Py_GetLocaleEncoding() (GH-23050)

_io.TextIOWrapper no longer calls getpreferredencoding(False) of
_bootlocale to get the locale encoding, but calls
_Py_GetLocaleEncoding() instead.

Add config_get_fs_encoding() sub-function. Reorganize also
config_get_locale_encoding() code.
Include/internal/pycore_fileutils.h
Modules/_io/_iomodule.c
Modules/_io/_iomodule.h
Modules/_io/textio.c
Python/fileutils.c
Python/initconfig.c