]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098...
authorWilliam Grzybowski <wg@FreeBSD.org>
Sun, 9 Sep 2018 11:27:31 +0000 (08:27 -0300)
committerVictor Stinner <vstinner@redhat.com>
Sun, 9 Sep 2018 11:27:31 +0000 (13:27 +0200)
commit7a633ed79cfba2cfc0f80410ddcaeecadc2030e9
treee2eaa34c94f6b2831613a58ac85678f23aeb9bba
parent77b92b15a5e5c84b91d3fd9d02f63db432fa8903
[3.7] bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098) (GH-9104)

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 28658485a54ad5f9df52ecc12d9046269f1654ec)

Co-authored-by: William Grzybowski <wg@FreeBSD.org>
Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst [new file with mode: 0644]
Modules/grpmodule.c
Modules/pwdmodule.c