Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!news.karotte.org!uucp.gnuu.de!xts.gnuu.de!.POSTED!not-for-mail From: Simon Krahnke Newsgroups: comp.lang.ruby Subject: Re: Zlib::GzipReader doesn't work as expected Date: Wed, 25 Apr 2012 21:53:15 +0200 Organization: there's no z in organisation Lines: 15 Message-ID: <87mx5z7fmc.fsf@xts.gnuu.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: xts.gnuu.de 1335383595 17311 172.19.115.2 (25 Apr 2012 19:53:15 GMT) X-Complaints-To: usenet@nowhere.invalid User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:fk7RLtG4rn4txbIIHiJ27qRsBg8= Xref: csiph.com comp.lang.ruby:6519 * Thomas Wolf (10:57) schrieb: > These files are "gzip"ed as follows: > gzip < 5lines.txt > foo.gz > gzip < more5lines.txt >> foo.gz So you have two streams of gzipped data in foo.gz. And the ruby library reads only the first one. > How do I force Zlib::GzipReader do read the whole file? I don't know, read the source. mfg, simon .... l