Skip to content

UTF-8 Mode: TextIOWrapper.reconfigure should support encoding="locale" #91952

Closed

Description

@methane

Feature or enhancement

TextIOWrapper.__init__() supports encoding="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").

Activity

  1. changed the title [-]PEP 686: TextIOWrapper.reconfigure should support `encoding="locale"`[/-] [+]UTF-8 Mode: TextIOWrapper.reconfigure should support `encoding="locale"`[/+] on Apr 26, 2022
  2. added a commit that references this issue on May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions