[issue10972] zipfile: add unicode option to the choose filename encoding

STINNER Victor report at bugs.python.org
Fri Jan 21 13:03:08 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

Oh, this patch fixes also a bug: ZipFile._RealGetContents() doesn't keep the unicode flag, so open a ZIP file and then write it somewhere else may change the unicode flag if unicode flag was set but the filename is also encodable to UTF-8 (eg. ASCII filename).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10972>
_______________________________________


More information about the Python-bugs-list mailing list