[issue4871] zipfile can't decrypt

Amaury Forgeot d'Arc report at bugs.python.org
Tue Jan 13 09:40:50 CET 2009

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

in Lib/zipfile.py, the filename is already allowed to be unicode if the
"flag_bits" for the file entry contains 0x800. This indicates that the
encoding is utf-8.

We could do the same for the password. Attached is a tentative patch
along this idea (for py3k replace 'unicode' with 'str' of course)

keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file12712/zipfile-pwd.patch

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list