home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / compress / 4192 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.6 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!julienas!chorus!octave.chorus.fr!jloup
  2. From: jloup@chorus.fr (Jean-loup Gailly)
  3. Newsgroups: comp.compression
  4. Subject: Re: HELP: Problem with old zipped files
  5. Keywords: zip
  6. Message-ID: <1495@chorus.chorus.fr>
  7. Date: 21 Dec 92 09:58:58 GMT
  8. References: <1992Dec20.223714.576@julian.uwo.ca>
  9. Sender: jloup@chorus.chorus.fr
  10. Reply-To: jloup@chorus.fr (Jean-loup Gailly)
  11. Organization: Chorus systemes, Saint Quentin en Yvelines, France
  12. Lines: 26
  13.  
  14. Darren Gage <gage@obelix.gaul.csd.uwo.ca> can't unzip some .zip files:
  15.  
  16. > I thought about problems if the transfer was not in binary mode
  17. > (when I down-loaded) but there too many high order bits set in
  18. > the zipped files to allow for that.
  19. [...]
  20. > when ever the "version made by" bytes, and the "version needed to
  21. > uncompress" bytes are output into the stream, a '0D' is placed before them.
  22. [...]
  23. > the "version made by" bytes indicate that the files were
  24. > made with zip 1.0 on a *nix [0A 03].
  25.  
  26. Didn't you notice that 0A is linefeed and that 0D is carriage-return?
  27. You *did* transfer your files in ascii mode instead of binary mode, so
  28. the file transfer program inserted a CR before every LF.  The best you
  29. can do to recover your data is to transform all pairs CR LF back to
  30. LF, and hope that the original binary stream in the zip file did not
  31. happen to contain this sequence (which would probably have been left
  32. intact by the file transfer instead of being transformed to CR CR LF).
  33.  
  34. This error (forgetting to set binary mode) is so common that I have
  35. made a special item in the comp.compression FAQ (question 30, subject
  36. "My archive is corrupted!").
  37.  
  38. Jean-loup Gailly
  39. jloup@chorus.fr
  40.