[issue4621] zipfile returns string but expects binary
STINNER Victor
report at bugs.python.org
Sat Dec 20 15:03:04 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
In the ZIP file format, a filename is a byte string because we don't
know the encoding. You can not guess the encoding because it's not
stored in the ZIP file and it depends on the OS and the OS
configuration. So t1.filename have to be a byte string and
testzip.read() have to use bytes and not str.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4621>
_______________________________________
More information about the Python-bugs-list
mailing list