Skip to content

bpo-42208: Add _Py_GetLocaleEncoding() - #23050

Merged
vstinner merged 3 commits into
python:masterfrom
vstinner:get_locale_encoding
Oct 31, 2020
Merged

vstinner merged 3 commits into
python:masterfrom
vstinner:get_locale_encoding

Conversation

@vstinner

@vstinner vstinner commented Oct 30, 2020 •

Copy link
Copy Markdown
Member

_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.
@vstinner
vstinner merged commit 710e826 into python:master Oct 31, 2020
@vstinner
vstinner 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants