New submission from STINNER Victor <victor.stin...@haypocalc.com>:

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.

----------
components: Library (Lib), Unicode
files: zipfile_unicode.patch
keywords: patch
messages: 126724
nosy: haypo
priority: normal
severity: normal
status: open
title: zipfile: add unicode option to the choose filename encoding
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20478/zipfile_unicode.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to