[New-bugs-announce] [issue10972] zipfile: add unicode option to the choose filename encoding

STINNER Victor report at bugs.python.org
Fri Jan 21 13:00:45 CET 2011


New submission from STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue10972>
_______________________________________


More information about the New-bugs-announce mailing list