From: drbrain@...7.net Date: 2014-05-01T22:53:31+00:00 Subject: [ruby-core:62271] [ruby-trunk - Bug #9790] [Assigned] Zlib::GzipReader only decompressed the first of concatenated files Issue #9790 has been updated by Eric Hodel. Category set to ext Status changed from Open to Assigned Assignee set to Eric Hodel Target version set to current: 2.2.0 ---------------------------------------- Bug #9790: Zlib::GzipReader only decompressed the first of concatenated files https://bugs.ruby-lang.org/issues/9790#change-46434 * Author: Jake Quain * Status: Assigned * Priority: Normal * Assignee: Eric Hodel * Category: ext * Target version: current: 2.2.0 * ruby -v: 2.1.1 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- There is a similar old issue in Node that I came across that perfectly describes the situation in ruby: https://github.com/joyent/node/issues/6032 In ruby given the following setup: ``` echo "1" > 1.txt echo "2" > 2.txt gzip 1.txt gzip 2.txt cat 1.txt.gz 2.txt.gz > 3.txt.gz ``` Calling: ``` Zlib::GzipReader.open("3.txt.gz") do |gz| print gz.read end ``` would just print: ``` 1 ``` -- https://bugs.ruby-lang.org/