From: "U.Nakamura" Date: 2011-12-13T17:02:47+09:00 Subject: [ruby-core:41629] Re: [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP Hello, In message "[ruby-core:41628] [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP" on Dec.13,2011 16:44:29, wrote: > It's difficult, but it seems switching from binary mode to text mode would be possible. I added binary and text mixed test cases. > I use implicit mode setting at other positions. > > File cursor seeking with setting binary mode had a bug. I fixed it to take care of '\r'. > Is there other test cases to check? Although I don't want to trouble you... str = "a\nb" generate_file("tmp", str) open("tmp", "r") do |f| assert_equal(str, f.read(3)) end Regards, -- U.Nakamura