commit | 710e82630775774dceba5e8f24b1b10e6dfaf9b7 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Sat Oct 31 01:02:09 2020 +0100 |
committer | GitHub <noreply@github.com> | Sat Oct 31 01:02:09 2020 +0100 |
tree | b4415da3ed5f8bc2ad2a52ec9a8544b9e50d975f | |
parent | 06f8c3328dcd81c84d1ee2b3a57b5381dcb38482 [diff] |
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.