[issue3997] zipfile and winzip

Amaury Forgeot d'Arc report at bugs.python.org
Tue Oct 21 00:23:52 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Right, this is a bug in zipfile.py.
The official PKZIP specifications says:
http://www.pkware.com/documents/casestudies/APPNOTE.TXT

      total number of entries in the central dir: (2 bytes)

          The total number of files in the .ZIP file. If an 
          archive is in ZIP64 format and the value in this field
          is 0xFFFF, the size will be in the corresponding 8 byte 
          zip64 end of central directory field.

Patch is attached. With it I can open the file with WinZip.

----------
keywords: +needs review, patch
nosy: +loewis
Added file: http://bugs.python.org/file11841/zip-64k.patch

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


More information about the Python-bugs-list mailing list