Actions
Backport #2046
closed(IO|File)#binmode is Inconsistent Across Versions
Status:
Closed
Assignee:
Description
=begin
Presumably 1.8 or 1.9 are at fault.
$ cat /tmp/bin.rb
f = File.new('/etc/passwd')
f.close
f.binmode
$ ruby8 -v /tmp/bin.rb
ruby 1.8.8dev (2009-07-01) [i686-linux]
$ ruby -v /tmp/bin.rb
ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux]
/tmp/bin.rb:3:in binmode': closed stream (IOError) from /tmp/bin.rb:3:in
'
Possibly related: http://redmine.ruby-lang.org/issues/show/1633
=end
Actions
Like0
Like0Like0Like0Like0