From: Yukihiro Matsumoto Date: 2008-09-17T23:03:01+09:00 Subject: [ruby-core:18662] Re: Reading non-ascii compatible files Hi, In message "Re: [ruby-core:18657] Re: Reading non-ascii compatible files" on Wed, 17 Sep 2008 21:32:25 +0900, Tanaka Akira writes: |> I assume it's a bug. I will fix. | |Which? | |* File.open doesn't see "mode:" argument. |or |* There is a reason this error is not occur in write mode. The former. |If former, what's happen on File.open(path, "w", mode: "r")? That would raise "mode specified twice" ArgumentError. |If later, what's reason? It's not a bug, but I vaguely think we might need to warn (or raise exception) for ASCII incompatible string output to text-mode IO. matz.