Hi,

In message "Re: [ruby-core:18648] Re: Reading non-ascii compatible files"
    on Wed, 17 Sep 2008 17:12:28 +0900, Tanaka Akira <akr / fsij.org> writes:


|> ruby -v -I .ext/i686-linux -E UTF-16LE -e "File.open('/tmp/xx', mode: 'w')"         
|> ruby 1.9.0 (2008-09-16 revision 19380) [i686-linux]
|> -e:1:in `initialize': ASCII incompatible encoding needs binmode (ArgumentError)
|> 	from -e:1:in `open'
|> 	from -e:1:in `<main>'
|>
|> But File.open(path, "w") does not check.  This is a bug.
|
|File.open doesn't see "mode:" argument.
|There is a reason this error is not occur in write mode.

I assume it's a bug.  I will fix.

							matz.