| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…156717) urllib.request.pathname2url() and url2pathname() use the filesystem encoding and error handler since pythongh-85168, but nturl2path, which implements them on Windows before 3.14, was left unchanged. Paths containing surrogate characters raised UnicodeEncodeError. (cherry picked from commit 01599e2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Since nturl2path uses the filesystem encoding, the expected results of quoting non-ASCII characters depend on it. Use os_helper.FS_NONASCII and os_helper.TESTFN_UNDECODABLE, and skip the tests when there is no suitable character or byte sequence for the current encoding. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> (cherry picked from commit 3e1b5d8)
| Back | FazBrowse Home | New Git URL |
urllib.request.pathname2url() and url2pathname() use the filesystem encoding
and error handler since gh-85168, but nturl2path, which implements them on
Windows before 3.14, was left unchanged. Paths containing surrogate
characters raised UnicodeEncodeError.
(cherry picked from commit 01599e2)
Co-authored-by: Serhiy Storchaka storchaka@gmail.com