diff options
author | William Grzybowski <wg@FreeBSD.org> | 2018-09-07 17:10:39 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-09-07 17:10:39 (GMT) |
commit | 28658485a54ad5f9df52ecc12d9046269f1654ec (patch) | |
tree | 37481555ef2aabc3af2c325ef4b6c6c65e2662ef /Misc | |
parent | 7e610bcdf128f61b925654e4fa80fbac83537d0e (diff) | |
download | cpython-28658485a54ad5f9df52ecc12d9046269f1654ec.zip cpython-28658485a54ad5f9df52ecc12d9046269f1654ec.tar.gz cpython-28658485a54ad5f9df52ecc12d9046269f1654ec.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst b/Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst new file mode 100644 index 0000000..562a691 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-09-07-10-16-34.bpo-34604.xL7-kG.rst @@ -0,0 +1,2 @@ +Fix possible mojibake in the error message of `pwd.getpwnam` and +`grp.getgrnam`. Patch by William Grzybowski. |