TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Edwards
from: Frank Malcolm
date: 1997-01-04 01:09:24
subject: OS/2 4.0

Hi, Paul.

PE> RS> The same INPUT file, sure, clearly not the same OUTPUT file tho,
PE> RS> the length was different. So the CRC should be different too.

PE> PE> zip calculates the CRC on the input data.

PE> RS> I find that hard to believe. It complains about
PE> RS> a damaged archive without having unzipped it first.

PE> Easiest way to confirm is by doing a zip -0 and then a zip -9, in both case
PE> followed by a zip -v.

What do they (-0 & -9) do, Paul? Those options aren't in PKZIP (which I
use).

PE> Another way is to read the source code, as I have done.

And another way is to calculate the CRC of the input file and compare it
with the one quoted by ZIP, as I have done.

You are of course right.

Regards, fIM.

 * * Against stupidity, the Gods themselves, contend in vain!
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 711/934 712/610
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.