Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6519

Re: Zlib::GzipReader doesn't work as expected

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 <overlord@gmx.li>
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> (permalink)
References <jn8e9q$sg3$1@online.de>
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

Show key headers only | View raw


* Thomas Wolf <thomasw@viacanale.de> (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

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Zlib::GzipReader doesn't work as expected Thomas Wolf <thomasw@viacanale.de> - 2012-04-25 10:57 +0200
  Re: Zlib::GzipReader doesn't work as expected Robert Klemme <shortcutter@googlemail.com> - 2012-04-25 21:03 +0200
    Re: Zlib::GzipReader doesn't work as expected Simon Krahnke <overlord@gmx.li> - 2012-04-25 21:55 +0200
    Re: Zlib::GzipReader doesn't work as expected Thomas Wolf <thomasw@viacanale.de> - 2012-04-26 11:54 +0200
      Re: Zlib::GzipReader doesn't work as expected Simon Krahnke <overlord@gmx.li> - 2012-04-26 22:02 +0200
  Re: Zlib::GzipReader doesn't work as expected Simon Krahnke <overlord@gmx.li> - 2012-04-25 21:53 +0200

csiph-web