Skip to content

Support non-ASCII user name in posixpath.expanduser() #117503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
serhiy-storchaka opened this issue Apr 3, 2024 · 0 comments
Closed

Support non-ASCII user name in posixpath.expanduser() #117503

serhiy-storchaka opened this issue Apr 3, 2024 · 0 comments
Labels
3.12 only security fixes 3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

serhiy-storchaka commented Apr 3, 2024

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

@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error 3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes labels Apr 3, 2024
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Apr 3, 2024
…anduser()

They are now supported in bytes paths as well as in string paths.
serhiy-storchaka added a commit that referenced this issue Apr 17, 2024
…r() (GH-117504)

They are now supported in bytes paths as well as in string paths.
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Apr 17, 2024
…ath.expanduser() (pythonGH-117504)

They are now supported in bytes paths as well as in string paths.
(cherry picked from commit 51132da)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@erlend-aasland erlend-aasland removed the 3.11 only security fixes label Apr 17, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
…anduser() (pythonGH-117504)

They are now supported in bytes paths as well as in string paths.
serhiy-storchaka added a commit that referenced this issue Apr 17, 2024
…panduser() (GH-117504) (GH-117970)

They are now supported in bytes paths as well as in string paths.
(cherry picked from commit 51132da)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this issue Apr 18, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 18, 2024
… with / (pythonGH-118056)

(cherry picked from commit ccdcd1d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this issue Apr 18, 2024
…s with / (GH-118056) (GH-118058)

(cherry picked from commit ccdcd1d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants