This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author apolkosnik
Recipients Jim.Jewett, NewerCookie, amaury.forgeotdarc, apolkosnik, berker.peksag, chuck, ethan.furman, francismb, georg.brandl, gregory.p.smith, ncoghlan, ronaldoussoren, serhiy.storchaka, terry.reedy
Date 2014-05-02.19:30:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399059024.43.0.508167797649.issue6839@psf.upfronthosting.co.za>
In-reply-to
Content
Ethan,
I'd refer you to msg92309...

And
When testing with WinZip it looks like this: 
No errors detected in compressed data of C:\Downloads\test.zip.
Testing ...
Testing test\                    OK
Testing test\test2.txt           OK
Testing test1.txt                OK

Then in python:
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> zf =  zipfile.ZipFile('test.zip')
>>> namelist = zf.namelist()
>>> namelist
['test/', 'test/test2.txt', 'test1.txt']
>>> for af in namelist:
...     zf.read(af)
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "c:\Python34\lib\zipfile.py", line 1117, in read
    with self.open(name, "r", pwd) as fp:
  File "c:\Python34\lib\zipfile.py", line 1180, in open
    % (zinfo.orig_filename, fname))
zipfile.BadZipFile: File name in directory 'test\\' and header b'test/' differ.

So, based on that everything is already converted to forward slashes for the extraction.
History
Date User Action Args
2014-05-02 19:30:24apolkosniksetrecipients: + apolkosnik, georg.brandl, terry.reedy, gregory.p.smith, ronaldoussoren, amaury.forgeotdarc, ncoghlan, NewerCookie, chuck, ethan.furman, francismb, berker.peksag, Jim.Jewett, serhiy.storchaka
2014-05-02 19:30:24apolkosniksetmessageid: <1399059024.43.0.508167797649.issue6839@psf.upfronthosting.co.za>
2014-05-02 19:30:24apolkosniklinkissue6839 messages
2014-05-02 19:30:23apolkosnikcreate