[Python-Dev] non-US zip archives support in zipfile.py (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Tue Oct 15 12:22:29 CEST 2013


Am 15.10.13 10:53, schrieb Daniel Holth:

FYI zipfile does do UTF-8 (http://hg.python.org/cpython/file/d7ebe03fa752/Lib/zipfile.py#l368). Only the non-Unicode encodings might need some help. I like that the patch is only concerned with decoding. Is it necessary to support writing non-UTF8 encodings?

For purity, no. For practicality, perhaps. It might be that some tools don't know how to unpack files marked as UTF-8, and always default to the system code page.

OTOH, before accepting such a change, I'd like to know what actual existing tool would require such a hack, and a confirmation that this very tool indeed does not support UTF-8.

Regards, Martin



More information about the Python-Dev mailing list