Actions
Backport #2432
closedStringIO#reopen incomplete initialization
Status:
Closed
Assignee:
-
Description
=begin
0% ruby187 -v -rstringio -e 'f = StringIO.new("foo"); f.gets; f.reopen("foo"); p f.gets'
ruby 1.8.7 (2009-11-25 patchlevel 225) [i686-linux]
nil
0% ruby -v -rstringio -e 'f = StringIO.new("foo"); f.gets; f.reopen("foo"); p f.gets'
ruby 1.8.8dev (2009-12-03 revision 25983) [i686-linux]
"foo"
0%
Fix for ruby_1_8 was in r17449 by Matz. These 2 changes are needed to be backported.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ext/stringio/stringio.c?r1=17450&r2=17449&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/test/stringio/test_stringio.rb?r1=17450&r2=17449&diff_format=u
commit log is "wrong commit". Indeed. :-)¶
=end
Actions
Like0
Like0Like0Like0