Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug that GZipReader#gets may return incomplete line
See also: ruby/csv#117 (comment) How to reproduce with x.csv.gz in the issue comment: Zlib::GzipReader.open("x.csv.gz") do |rio| rio.gets(nil, 1024) while line = rio.gets(nil, 8192) raise line unless line.valid_encoding? end end Reported by Dimitrij Denissenko. Thanks!!!
- Loading branch information