From: Run Paint Run Run Date: 2009-09-05T00:53:57+09:00 Subject: [ruby-core:25363] [Bug #2046] (IO|File)#binmode is Inconsistent Across Versions Bug #2046: (IO|File)#binmode is Inconsistent Across Versions http://redmine.ruby-lang.org/issues/show/2046 Author: Run Paint Run Run Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] 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 ---------------------------------------- http://redmine.ruby-lang.org