1.5.1: unzip problems with binary files in archive

David Rothenberger daveroth@acm.org
Mon Jul 28 22:32:00 GMT 2003


I'm getting a strange error from unzip when trying to extract an
archive that contains binary files.  Everything works fine if the
archive contains just text files.

This problem occurs with the 1.5.1 DLL and the latest test packages
for zip and unzip.  Everything works fine with 1.3.22.  It also
works okay with 1.5.1 and the Curr versions of zip/unzip.

Simply recompiling the zip/unzip packages against the 1.5.1 DLL did
not fix the problem.

Here's what I did:

----------------------------------------------------------------------
$ cp /bin/ls.exe .
$ zip tst.zip ls.exe
  adding: ls.exe (deflated 53%)
$ rm ls.exe
$ unzip tst.zip
Archive:  tst.zip
error [tst.zip]:  missing 48821 bytes in zipfile
  (attempting to process anyway)
error [tst.zip]:  attempt to seek before beginning of zipfile
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

$ rm tst.zip
$ date > text.txt
$ zip tst.zip text.txt
$ rm text.txt
$ unzip tst.zip
Archive:  tst.zip
 extracting: text.txt
----------------------------------------------------------------------

Dave

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030728/f4bacc29/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list