Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io.rb
Original file line number Diff line number Diff line change
@@ -1692,6 +1692,7 @@ def self.setup(io, fd, mode=nil, sync=false)

io.mode = mode || cur_mode
io.sync = !!sync
io.lineno = 0 if io.lineno.nil?

# FIXME - re-enable this somehow. Right now this breaks kernel/delta/io.rb when it
# redefines STDIN/STDOUT/STDERR from the IO.open call. The new IO code has already
@@ -1720,7 +1721,6 @@ def initialize(fd, mode=undefined, options=undefined)
fd = Rubinius::Type.coerce_to fd, Integer, :to_int
autoclose = @autoclose
IO.setup self, fd, mode
@lineno = 0

binmode if binary
set_encoding external, internal

0 comments on commit b39b6dd

Please sign in to comment.