[issue10955] Possible regression with stdlib in zipfile

STINNER Victor report at bugs.python.org
Fri Jan 21 12:53:49 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Oh, py2app is implemented in Python and use the zipfile module. So if we can control how the filename is encoded, we can fix py2app to workaround this limitation :-)

7zip and WinRAR uses the same algorithm than ZipFile._encodeFilename(): try cp437 or use UTF-8. Eg. if a filename contains ∞ (U+221E), it is encoded to UTF-8.

WinZIP encodes all filenames to cp437: ∞ (U+221E) is replaced by 8 (U+0038), ☺ (U+263A) is replaced by... U+0001 !

----------

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


More information about the Python-bugs-list mailing list