Article View: news.software.nntp
Article #56787Re: [yEnc] Survey time! (Compression or not?)
From: Russ Allbery
Date: Fri, 22 Feb 2002 07:57
Date: Fri, 22 Feb 2002 07:57
49 lines
3460 bytes
3460 bytes
Curt Welch <curt@kcwc.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> You can do that if you want, if you intentionally use the low-level
>> zlib routines, but the standard zlib calls write gzip files. It's
>> basically the same as the output of gzip. I use this all the time as
>> part of my job; I know it's true.
> Ok, which low level routines? compress()/uncompress() or deflate()/
> inflate() etc?
Right.
> It's obvious the gz* routines will be creating gzip file format. What
> does compress() create and what does deflate() create? I assumed both
> would be the same and both would be zlib format?
I would assume that they're generating the compressed streams without the
headers, yes. (I find your term "zlib format" to be extremely confusing,
since zlib creates gzip files when you tell it to create a file.)
> No, it looks like I was right. The compress() and uncompress() zlib
> functions are not returning data in gzip format. It looks like zlib
> format.
Why are you using those functions rather than using the gzopen() /
gzwrite() interface?
I don't understand what you're trying to argue. First you said that zlib
wasn't the same compression format as gzip, then you said that zlib
couldn't write files that gzip can read, and now you're saying that if you
intentionally use functions that aren't interoperable with gzip, they're
not interoperable with gzip. Well, the first two statements aren't true,
but the last statement is, certainly. But I really no longer understand
your point.
My point is that if you want to generate something that gzip can
decompress, zlib works just great. You seem to be continuing to disagree
with me, and I'm extremely confused about the grounds for your
disagreement.
Like I said, I have programs that *do* this. It works fine.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<ylvgcq3q5r.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<a504os$736$6@pegasus.csx.cam.ac.uk> <200220022141483852%planb@newsreaders.com> <20020220230116.405$a3@newsreader.com> <1014270020.729921@ok-corral.gunslinger.net> <20020221152617.647$FV@newsreader.com> <a53ut8$7i4$4@pegasus.csx.cam.ac.uk> <20020221183904.819$lz@newsreader.com> <yleljecpr8.fsf@windlord.stanford.edu> <20020221224023.453$bg@newsreader.com> <ylr8ne6pve.fsf@windlord.stanford.edu> <20020222021334.828$pl@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <ylvgcq3q5r.fsf@windlord.stanford.edu> Subject: Re: [yEnc] Survey time! (Compression or not?) Date: Thu, 21 Feb 2002 23:57:04 -0800 From: Russ Allbery <rra@stanford.edu> References: <a504os$736$6@pegasus.csx.cam.ac.uk> <200220022141483852%planb@newsreaders.com> <20020220230116.405$a3@newsreader.com> <1014270020.729921@ok-corral.gunslinger.net> <20020221152617.647$FV@newsreader.com> <a53ut8$7i4$4@pegasus.csx.cam.ac.uk> <20020221183904.819$lz@newsreader.com> <yleljecpr8.fsf@windlord.stanford.edu> <20020221224023.453$bg@newsreader.com> <ylr8ne6pve.fsf@windlord.stanford.edu> <20020222021334.828$pl@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 48 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1014364624 1152 171.64.13.23 (22 Feb 2002 07:57:04 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:SwvLC8pk18d1drVKY1S7rXgi060=