FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] GH-85168: Use filesystem encoding when converting to/from `file` URIs (GH-126852) by miss-islington · Pull Request #127040 · python/cpython · GitHub

Repository navigation

[3.12] GH-85168: Use filesystem encoding when converting to/from file URIs (GH-126852) - #127040

Merged
barneygale merged 1 commit into
python:3.12from
miss-islington:backport-c9b399f-3.12
Nov 19, 2024
Merged

barneygale merged 1 commit into
python:3.12from
miss-islington:backport-c9b399f-3.12

Conversation

miss-islington commented Nov 19, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Adjust urllib.request.url2pathname() and pathname2url() to use the
filesystem encoding when quoting and unquoting file URIs, rather than
forcing use of UTF-8.

No changes are needed in the nturl2path module because Windows always
uses UTF-8, per PEP 529.
(cherry picked from commit c9b399f)

Co-authored-by: Barney Gale barney.gale@gmail.com

…` URIs (pythonGH-126852)

Adjust `urllib.request.url2pathname()` and `pathname2url()` to use the
filesystem encoding when quoting and unquoting file URIs, rather than
forcing use of UTF-8.

No changes are needed in the `nturl2path` module because Windows always
uses UTF-8, per PEP 529.
(cherry picked from commit c9b399f)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL