From: <je...@pi...> - 2001-12-03 21:13:18
|
I'm forwarding the message below to the list ------------------------------------------------------------------------ Hello I hope you have the time to just take a look at this and maybe give me a comment or hint I am using jazzlib0.03 to create a zip-file containing one file. The zip-file is then used by ziplib from PKWare. The created file are correct is that sense that all my zip-aware programs (zip, unzip, pkzip, winzip) Unfortunately the lib which is supposed to use my zipped file cannot open the file for some reason. When I compare the output from my zipinfo program (unzip -Z -v myfile.zip) and the same files zipped with Winzip, I get something like this: diff myfile.zip winzipped_file.zip 1c1 < Archive: myfile.zip 203 bytes 1 file --- > Archive: winzipped_file.zip 187 bytes 1 file 6,7c6,7 < Actual offset of end-of-central-dir record: 181 (000000B5h) < Expected offset of end-of-central-dir record: 181 (000000B5h) --- > Actual offset of end-of-central-dir record: 165 (000000A5h) > Expected offset of end-of-central-dir record: 165 (000000A5h) 13c13 < beginning of the zipfile is 124 (0000007Ch). --- > beginning of the zipfile is 108 (0000006Ch). 30c30 < extended local header: yes --- > extended local header: no 39,41c39,41 < apparent file type: binary < non-MSDOS external file attributes: 000000 hex < MS-DOS file attributes (00 hex): none --- > apparent file type: text > non-MSDOS external file attributes: 81B600 hex > MS-DOS file attributes (20 hex): arc Apparently there is a "extended local header" in files created by jazzlib which does not exist in files created using "other zippers". I have tried to figure out what an ELH means, but zero result so far. I checked jazzlib sources, but that didn't help me. Also there is some diff regarding file types and file attributes, but I hardly think they are the problem. If you have any ideas what this is, and how I can force jazzlib not to create that ELH I would be very grateful! Btw, I tried using standard java.util.zip package and that gives the same result as jazzlib /Kind regards Martin Wickman --------------------------------------------- This message was sent using M-Web Airmail. http://airmail.mweb.co.za/ |