From: Dave Thomas Date: 2008-12-16T04:49:37+09:00 Subject: [ruby-core:20587] Re: StringIO bug? On Dec 15, 2008, at 1:42 PM, Markus Schirp wrote: > buff = String.new > until(io.eof?) > io.read(1,buff) You're overwriting the content of buff each time round the loop. The resulting array contains multiple references to this same buff object. Dave