-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-34604: Fix possible mojibake in pwd.getpwnam
and grp.getgrnam
#9098
Conversation
The build failed probably because I changed pwd.getpwnam signature from |
db1ba9a
to
92ca030
Compare
@@ -0,0 +1,2 @@ | |||
Fix possible mojibake in `pwd.getpwnam` and `grp.getgrnam`. Patch by William |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you mind to add "... in the error message." to clarify that it doesn't affect the regular case?
@vstinner sure, updated. Thanks |
Thanks @william-gr for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
Thanks @william-gr for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, @william-gr and @vstinner, I could not cleanly backport this to |
Sorry, @william-gr and @vstinner, I could not cleanly backport this to |
@william-gr: it seems like the the bot failed to backport the fix. Would you mind to try to create 3.6 and 3.7 backport pull requests? |
GH-9104 is a backport of this pull request to the 3.7 branch. |
GH-9105 is a backport of this pull request to the 3.6 branch. |
…rnam() (pythonGH-9098) Pass the user/group name as Unicode to the formatting function, instead of always decoding a bytes string from UTF-8.. (cherry picked from commit 2865848) Co-authored-by: William Grzybowski <wg@FreeBSD.org>
…rnam() (pythonGH-9098) Pass the user/group name as Unicode to the formatting function, instead of always decoding a bytes string from UTF-8.. (cherry picked from commit 2865848) Co-authored-by: William Grzybowski <wg@FreeBSD.org>
Spotted by: @vstinner
https://bugs.python.org/issue34604