You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
methane
changed the title
PEP 686: TextIOWrapper.reconfigure should support encoding="locale"
UTF-8 Mode: TextIOWrapper.reconfigure should support encoding="locale"Apr 26, 2022
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: