Project

General

Profile

Actions

Backport #2046

closed

(IO|File)#binmode is Inconsistent Across Versions

Added by runpaint (Run Paint Run Run) over 14 years ago. Updated about 13 years ago.


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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0