This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2011-01-21.12:00:43
SpamBayes Score 5.6974625e-07
Marked as misclassified No
Message-id <1295611245.09.0.199855932712.issue10972@psf.upfronthosting.co.za>
In-reply-to
Content
ZipInfo._encodeFilename() tries cp437 encoding or use UTF-8. It is not possible to decide the encoding.

To workaround #10955 (bootstrap issue with python32.zip), it would be nice to be able to create a ZIP file using only UTF-8 filenames.

Attached patch adds unicode parameter to ZipFile.write(), ZipFile.writestr() and ZipInfo constructor.
History
Date User Action Args
2011-01-21 12:00:46vstinnersetrecipients: + vstinner
2011-01-21 12:00:45vstinnersetmessageid: <1295611245.09.0.199855932712.issue10972@psf.upfronthosting.co.za>
2011-01-21 12:00:43vstinnerlinkissue10972 messages
2011-01-21 12:00:43vstinnercreate