Applied, thanks! So, I naively did a gzip < /dev/null > foo and got a non-empty file back... but I don't know if that's relevant (?), and Duncan (on IRC) says this looks good (although he wonders where those empty bytestrings are coming from)
resolve issue844: don't call gzwrite with zero length. ------------------------------------------------------ > David Roundy <[EMAIL PROTECTED]>**20081111145122 > Ignore-this: ac80c1db0fad3279ccee3b7b5f1f87ea > ] hunk ./src/ByteStringUtils.hs 435 > > gzWriteToGzf :: Ptr () -> B.ByteString -> IO () > gzWriteToGzf gzf ps = case BI.toForeignPtr ps of > + (_,_,0) -> return () -- avoid calling gzwrite with 0 length this would > + -- trouble on some versions of zlib, and is always > + -- unnecessary. > (x,s,l) -> do > lw <- withForeignPtr x $ \p -> c_gzwrite gzf (p `plusPtr` s) > (fromIntegral l) > -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
signature.asc
Description: Digital signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
