Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Oct 30, 2020

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

https://bugs.python.org/issue42208

_io.TextIOWrapper no longer calls getpreferredencoding(False) of _bootlocale to get the locale encoding, but calls _Py_GetLocaleEncoding() instead.
Reorganize also config_get_locale_encoding() code.
@vstinnervstinner merged commit 710e826 into python:masterOct 31, 2020
@vstinnervstinner deleted the get_locale_encoding branch October 31, 2020 00:05
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
_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.
erlend-aasland added a commit that referenced this pull request May 6, 2023
The locale module reference was introduced by 932ff83 in 2013, and rendered unused by 710e826 (gh-23050) in 2020.
jbower-fb pushed a commit to jbower-fb/cpython that referenced this pull request May 8, 2023
…#104246) The locale module reference was introduced by 932ff83 in 2013, and rendered unused by 710e826 (pythongh-23050) in 2020.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot