Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-42208: Add _Py_GetLocaleEncoding() #23050

Merged
merged 3 commits into from
Oct 31, 2020
Merged

bpo-42208: Add _Py_GetLocaleEncoding() #23050

merged 3 commits into from
Oct 31, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner 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.
@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-jbowerfb 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants