[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69354] [Ruby trunk - Bug #11180] [Open] Missing lines with Zlib::GzipReader
From:
exaspark@...
Date:
2015-05-25 08:17:13 UTC
List:
ruby-core #69354
Issue #11180 has been reported by Evgeny Li.
----------------------------------------
Bug #11180: Missing lines with Zlib::GzipReader
https://bugs.ruby-lang.org/issues/11180
* Author: Evgeny Li
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: 2.2.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Hi,
I have a script which is written in Python. It simply appends lines to archive file:
~~~python
#!/usr/bin/env python
import gzip
gstoragefile = 'test.json.gz'
gf = gzip.open(gstoragefile, 'ab')
print >> gf, "foo"
gf.close
gf = gzip.open(gstoragefile, 'ab')
print >> gf, "bar"
gf.close
~~~
Later I can read this lines:
~~~
gunzip -c test.json.gz
> foo
> bar
~~~
However, reading this archive with Ruby doesn't work. Looks like Ruby can read only lines from first written batch (*foo*):
~~~ruby
require "zlib"
Zlib::GzipReader.new(File.open("test.json.gz")).readlines.size
# => 1
~~~
--
https://bugs.ruby-lang.org/