Skip to content

[3.7] bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)#9104

Merged
vstinner merged 1 commit into
python:3.7from
william-gr:backport-2865848-3.7
Sep 9, 2018
Merged

[3.7] bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)#9104
vstinner merged 1 commit into
python:3.7from
william-gr:backport-2865848-3.7

Conversation

@william-gr

@william-gr william-gr commented Sep 7, 2018

Copy link
Copy Markdown

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

https://bugs.python.org/issue34604

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the backports, I suggest to leave the variable/parameter names unchanged.

…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>
@william-gr

Copy link
Copy Markdown
Author

@vstinner updated

@vstinner vstinner merged commit 7a633ed into python:3.7 Sep 9, 2018
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.

4 participants