]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz").
authorLars Gustäbel <lars@gustaebel.de>
Wed, 21 Dec 2011 18:27:50 +0000 (19:27 +0100)
committerLars Gustäbel <lars@gustaebel.de>
Wed, 21 Dec 2011 18:27:50 +0000 (19:27 +0100)
commit7d4d074c9996f07a859a6e5a38774aa65a4ff85c
tree0b687fb4e67971b42df43b78a3bc78ae1701a065
parent5b95eb90a7167285b6544b50865227c584943c9a
Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz").

Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS