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
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r24751.
=end
Updated by runpaint (Run Paint Run Run) over 14 years ago
=begin
Awfully minor, but could this be backported? There's a spec for it that now fails on 1.8/1.8.6.
=end
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Status changed from Closed to Assigned
- Assignee set to shyouhei (Shyouhei Urabe)
=begin
=end
Updated by shyouhei (Shyouhei Urabe) over 14 years ago
- Status changed from Assigned to Closed
=begin
This issue was solved with changeset r25812.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0Like0Like0Like0