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 eli.bendersky
Recipients M..Z., amaury.forgeotdarc, eli.bendersky, loewis, r.david.murray, vstinner
Date 2011-01-01.07:54:14
SpamBayes Score 6.02851e-13
Marked as misclassified No
Message-id <1293868457.88.0.271569862304.issue10801@psf.upfronthosting.co.za>
In-reply-to
Content
I'm attaching a patch with a test for Martin's fix. I had trouble programmatically generating a "bad" zip for this bug, since it has different encodings for the header and filename (probably created by WinZip?). So I created a directory in test/ and placed the problematic zipfile M.Z. submitted in there, and wrote an appropriate test in test_zipfile.py

I verified the test fails on py3k trunk before Martin's fix, and succeeds after it, both by running the test file directly and through regrtest.

Note: Tested only on Ubuntu
History
Date User Action Args
2011-01-01 07:54:17eli.benderskysetrecipients: + eli.bendersky, loewis, amaury.forgeotdarc, vstinner, r.david.murray, M..Z.
2011-01-01 07:54:17eli.benderskysetmessageid: <1293868457.88.0.271569862304.issue10801@psf.upfronthosting.co.za>
2011-01-01 07:54:15eli.benderskylinkissue10801 messages
2011-01-01 07:54:14eli.benderskycreate