STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to