]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)
authorWilliam Grzybowski <wg@FreeBSD.org>
Fri, 7 Sep 2018 17:10:39 +0000 (14:10 -0300)
committerVictor Stinner <vstinner@redhat.com>
Fri, 7 Sep 2018 17:10:39 +0000 (19:10 +0200)
commit28658485a54ad5f9df52ecc12d9046269f1654ec
tree37481555ef2aabc3af2c325ef4b6c6c65e2662ef
parent7e610bcdf128f61b925654e4fa80fbac83537d0e
bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098)

Pass the user/group name as Unicode to the formatting function,
instead of always decoding a bytes string from UTF-8.
Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst [new file with mode: 0644]
Modules/clinic/pwdmodule.c.h
Modules/grpmodule.c
Modules/pwdmodule.c