< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
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/