DMD2, std.zlib, and gzip

Glenn Lewis nospam at nospam.org
Wed Jul 22 22:40:48 PDT 2009


If I'm not mistaken, I used to use std.zlib with DMD1, and it was compatible with gzip.
Now that Andrei's awesome book is available on RoughCuts, I finally figured I would take the plunge and switch up to DMD2.

I tried writing a file with std.zlib.compress, and gzip could not uncompress it (both level=6 and level=9).
I tried gzip'ing a file, and std.zlib.uncompress could not uncompress it (see attached D file).

Note that writing with std.zlib then later reading with std.zlib works just fine... but am I dreaming that I used to also be able to use 'gzip' on the resulting files?

Thanks!
-- Glenn Lewis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testzlib.d
Type: text/x-dsrc
Size: 366 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20090723/e39a1b9c/attachment.d>


More information about the Digitalmars-d mailing list