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
encoding="locale"
Feature or enhancement
TextIOWrapper.__init__() supports encoding="locale" option. But TextIOWrapper.reconfigure() doesn't support it yet.
TextIOWrapper.__init__()
TextIOWrapper.reconfigure()
Pitch
Scenario:
Users may set PYTHONUTF8=1 enviroment variable but want to use locale encoding for stdin/stdout.
PYTHONUTF8=1
They may want to do sys.stdout.reconfigure(encoding="locale").
sys.stdout.reconfigure(encoding="locale")
The text was updated successfully, but these errors were encountered:
gh-91952: Make TextIOWrapper.reconfigure() supports "locale" encoding (…
0729b31
…GH-91982)
pythongh-91952: Make TextIOWrapper.reconfigure() supports "locale" en…
0d416ae
…coding (pythonGH-91982)
69792da
Successfully merging a pull request may close this issue.
Feature or enhancement
TextIOWrapper.__init__()
supportsencoding="locale"
option.But
TextIOWrapper.reconfigure()
doesn't support it yet.Pitch
Scenario:
Users may set
PYTHONUTF8=1
enviroment variable but want to use locale encoding for stdin/stdout.They may want to do
sys.stdout.reconfigure(encoding="locale")
.The text was updated successfully, but these errors were encountered: