[issue4621] zipfile returns string but expects binary

Eddie report at bugs.python.org
Sun Dec 21 03:52:40 CET 2008


Eddie <skreft at gmail.com> added the comment:

I read again what STINNER Victor and I think that he found another bug.

Because, when listing the filenames of that zip file, the names are not
displayed correctly. In fact
'x/h├⌐' == 'x/hé'.encode('utf-8').decode('cp437')

So, there is again a problem with encodings when reading the contents.

The problem here is that when reading one can not give the filename,
because is not a key in the NameToInfo dictionary.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4621>
_______________________________________


More information about the Python-bugs-list mailing list