darcs

Message4638

Author kowey
Recipients Simon, beschmi, dagit, daveroundy, droundy, igloo, kowey, simonmar, simonpj, tommy
Date 2008-05-13.18:57:01
Issue Issue842 pull => problem gzopening file for write (1.0.9)
Content
Out of curiosity, I googled the error message and stumbled upon this FAQ from
gzip.org.  I tried their fixgz program, but the resulting file still gives a CRC
error.  

Simon, maybe it would be worthwhile to see what happens if you

 zcat
_darcs/patches/20080126191939-e23c7-efc06647390321527cc18de0e08c017b568b36ae.gz
> tmp-patch
 gzip tmp-patch
 mv tmp-patch.gz
_darcs/patches/20080126191939-e23c7-efc06647390321527cc18de0e08c017b568b36ae.gz

... and then try the darcs pull.

And here is the FAQ:

========8<==================
gunzip complains about corrupted data or a CRC error

99.9% of the problems with gzip are due to file transfers done in ASCII mode
instead of BINARY mode. In particular, gopher is known to corrupt binary files
by considering them as ASCII. Make sure that your local copy of the file has
exactly the same byte size as the original.

If you have transferred a file in ASCII mode and you no longer have access to
the original, you can try the program fixgz to remove the extra CR (carriage
return) bytes inserted by the transfer. A Windows 9x/NT/2000/ME/XP binary is
here. But there is absolutely no guarantee that this will actually fix your
file. Conclusion: never transfer binary files in ASCII mode. To compile fixgz
and run it, do:

   cc -o fixgz fixgz.c
   fixgz  bad.gz  fixed.gz
   gzip -tv fixed.gz
======8<=======================

Ok, I stop here.  Over to David (or somebody else!)
History
Date User Action Args
2008-05-13 18:57:01koweycreate
2008-05-13 18:57:02koweylinkissue842 messages
2008-05-13 18:57:03koweysetrecipients: + kowey, droundy, tommy, beschmi, dagit, igloo, simonmar, simonpj, daveroundy, Simon
2008-05-13 18:57:03koweysetmessageid: <1210705023.03.0.815843739617.issue842@darcs.net>