[Patches] [ python-Patches-458701 ] Patch to zipfile.py for Java
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 05 Sep 2001 05:59:52 -0700
Patches item #458701, was opened at 2001-09-05 05:52
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=458701&group_id=5470
Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: James C. Ahlstrom (ahlstromjc)
>Assigned to: Finn Bock (bckfnn)
Summary: Patch to zipfile.py for Java
Initial Comment:
This is an alternative to the zipfile.py patch 442128
by Finn Bock (bckfnn). Java fails to read zip files
created by zipfile.py because it requires a 4 byte
header for the CRC and file sizes which are written
after the file data, and the zip specification does not
have this header.
This patch will unset flag 0x08 (flags will be zero) to
indicate the CRC and file sizes do NOT follow the file
data, and will seek() backwards to write them in the
file header. This is consistent with the zip format
and eliminates the problem with Java. The patch has
been tested with WinZip.exe on Windows, is very simple,
and hopefully will make it into 2.2.
Jim Ahlstrom
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-09-05 05:59
Message:
Logged In: YES
user_id=6380
Finn, if this works for you, please check it in.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=458701&group_id=5470