Closed
Description
Bug report
Currently posixpath.expanduser()
only supports ASCII user names in bytes paths. It supports non-ASCII user names in string paths. ntpath.expanduser()
also "supports" non-ASCII user names (although this support is only a guess, but non-ASCII user names are not discriminated).
So I consider is as a bug.
Linked PRs
- gh-117503: Fix support of non-ASCII user names in posixpath.expanduser() #117504
- [3.12] gh-117503: Fix support of non-ASCII user names in posixpath.expanduser() (GH-117504) #117970
- gh-117503: Fix test for posixpath.expanduser() when pw_dir ends with / #118056
- [3.12] gh-117503: Fix test for posixpath.expanduser() when pw_dir ends with / (GH-118056) #118058