Content-Length: 260287 | pFad | https://github.com/python/cpython/issues/91952

E7 UTF-8 Mode: TextIOWrapper.reconfigure should support `encoding="locale"` · Issue #91952 · python/cpython · GitHub
Skip to content

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

@methane

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").

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/91952

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy