Skip to content

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

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

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

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 1bcd891 into python:3.6 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