Skip to content

Remove deprecated sys._enablelegacywindowsfsencoding #149595

Closed

Description

@StanFromIreland

Its removal has been scheduled for 3.16 in bfee2f7.

It doesn’t seem to have much usage looking through GitHub (the large number of search results is due to all of the forks of CPython and docs translations).

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    on May 9, 2026
  2. methane commented on May 11, 2026

    @methane
    Member

    Mercurial uses it.

    https://foss.heptapod.net/mercurial/mercurial-devel/-/blob/02ed53def57d9cd729d243744ce28a88e7280f53/mercurial/pycompat.py#L113

    I suggested to them to use environment variables three years ago, but I got no response from them.

    https://foss.heptapod.net/mercurial/mercurial-devel/-/work_items/6829

    Can one of the core developers talk to the Mercurial developers?

  3. StanFromIreland commented on May 11, 2026

    @StanFromIreland
    MemberAuthor

    I think removing may be a good push for them to actually fix it. I'm afraid I don't know any Mercurial people.

  4. added a commit that references this issue on May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions