[issue4621] zipfile returns string but expects binary

Glenn Linderman report at bugs.python.org
Sat Mar 27 06:48:23 CET 2010


Glenn Linderman <v+python at g.nevcal.com> added the comment:

I just "discovered" that attempting to open zip member "test\file" fails where attempting to open "test/file" works.  Granted the zip contains "/" not "\" characters, but using the os.path stuff (on windows) to manipulate the names before attempting to open the zip member produces "\" characters.  Clearly, I could switch them back.  It seems pretty clear that zipfile should do that for me, though.

A small, self-contained zip file test case is attached, being a zip that is named .py 

My testing using Python 3.1.1

----------
nosy: +v+python
Added file: http://bugs.python.org/file16674/testzip.py

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


More information about the Python-bugs-list mailing list