[issue28080] Allow reading member names with bogus encodings in zipfile

Stephen J. Turnbull report at bugs.python.org
Sun Sep 11 19:58:41 EDT 2016


Stephen J. Turnbull added the comment:

Can't reply on Rietveld?  Lost 2 hours work!

Patch updated (encoded-member-names-v2), most changes accepted.  Not happy about name change or default to cp437, I want this API to be hard to use and not be part of the normal process (utf-8 or cp437).  Considering errors= argument, but that must default to 'strict' -- the problem this patch solves is zip utilities extracting to files with unreadable names, surrogateescape is more of the same.  Two incomplete tests (assertRaisesRegex and capture main() stderr) still in progress, must do dayjob now.

----------
Added file: http://bugs.python.org/file44571/encoded-member-names-v2

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


More information about the Python-bugs-list mailing list