[issue4871] zipfile can't decrypt
Gabriel Genellina
report at bugs.python.org
Tue Jan 13 06:34:43 CET 2009
Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:
Lukas Lueg> The default encoding is UTF8
What do you mean? Not inside a zip file. The default encoding is CP437
(the original IBM PC US character set).
A zipfile password is a sequence of bytes, not characters, as defined
in the specification. Probably this issue has to wait until it is
decided what to do in the general case; anyway, encoding the password
to bytes at the application level seems to be safer.
----------
nosy: +gagenellina
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4871>
_______________________________________
More information about the Python-bugs-list
mailing list