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 almost 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 #1

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

Actions #2

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

Actions #3

Updated by nobu (Nobuyoshi Nakada) over 14 years ago

  • Status changed from Closed to Assigned
  • Assignee set to shyouhei (Shyouhei Urabe)

=begin

=end

Actions #4

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0