[issue10614] ZipFile and CP932 encoding
Martin v. Löwis
report at bugs.python.org
Fri Dec 3 09:13:31 CET 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
No, there is no indication in the zipfile that it deviates from the spec. That doesn't stop people from creating such zipfiles, anyway; many zip tools ignore the spec and use instead CP_ACP (which, of course, will then get misinterpreted if extracted on a different system).
I think we must support this case somehow, but must be careful to avoid creating such files unless explicitly requested. One approach might be to have two encodings given: one to interpret the existing filenames, and one to be used for new filenames (with a recommendation to never use that parameter since zip now supports UTF-8 in a well-defined manner).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list