Dave Thomas wrote:
> 
> On Mar 3, 2008, at 2:53 PM, NARUSE, Yui wrote:
> 
>> Dave Thomas wrote:
>>> I was expecting this to pass lines to the block:
>>>        IO.foreach("testfile", mode: "rb", encoding: "ascii-8bit") do 
>>> |content|
>>>          p content
>>>        end
>>> Instead, I see
>>>  dave[RUBY3/Book 14:04:31] ruby -v t.rb
>>>  ruby 1.9.0 (2008-03-03 revision 15427) [i686-darwin9.2.0]
>>>  #<File:testfile>
>>>  t.rb:1:in `foreach': closed stream (IOError)
>>>      from t.rb:1:in `<main>'
>>> It looks like it's passing the file object instead.
>>
>> fixed it at r15682.
> 
> It looks as if we also ned to cover the open_args: case--does the same 
> change need to be applied to line 5930 in io.c?

Oh, sorry.  I fixed line 5930 at r15685.

-- 
NARUSE, Yui  <naruse / airemix.com>
DBDB A476 FDBD 9450 02CD 0EFC BCE3 C388 472E C1EA