[issue6839] zipfile can't extract file
Adam Polkosnik
report at bugs.python.org
Thu Oct 17 22:42:49 CEST 2013
Adam Polkosnik added the comment:
I've got bitten by a different variation of this bug.
In my case the issue can be summarized by:
zipfile.BadZipfile: File name in directory "Windows\TEMP\test.tmp" and header "C:\Windows\TEMP\test.tmp" differ.
Attached is a patch for Python27/lib/zipfile.py. I understand that it might not be the best approach, but at least we just compare the filenames without caring much about those pesky paths preceding them.
----------
nosy: +apolkosnik
versions: +Python 2.7
Added file: http://bugs.python.org/file32160/zipfile.py.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6839>
_______________________________________
More information about the Python-bugs-list
mailing list