Issue #888 has been updated by Yasuhiro MISE.


Eric Hodel wrote:
> For what it's worth, I'd really like to see the root cause of this bug  
> fixed so this method can be returned to a simpler form:
>
> def zipped_stream(entry)
>    zis = Zlib::GzipReader.new entry
>    dis = zis.read
>    is = StringIO.new(dis)
> ensure
>    zis.finish if zis
> end
>
> Or even:
>
> def zipped_stream(entry)
>    Zlib::GzipReader.new entry
> end

Thanks your advice, and yes, each forms works fine!
Hope that Chauk-Mean can also confirm that these forms fix this issue.

> I'm fairly certain the bug doesn't exist in RubyGems

I agree, and I also agree to Luis's indication:

> Gregory Brown offered backport the zlib tests from 1.9 to 1.8 in
> [ruby-core:20602]
> 
> Maybe those can help pinpoint the root of the problem.


Y. MISE
----------------------------------------
http://redmine.ruby-lang.org/issues/show/888

----------------------------------------
http://redmine.ruby-lang.org