From: Luis Lavena Date: 2011-12-13T00:14:28+09:00 Subject: [ruby-core:41609] Re: [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP On Sun, Dec 11, 2011 at 11:42 PM, U.Nakamura wrote: > Hello, > > In message "[ruby-core:41578] [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP" > � �on Dec.10,2011 06:49:55, wrote: >> Category set to build > > build? > Sorry, meant to set core, but we don't have any category to describe platform-specific issues. > >> Usa, what do you think about attached read_binmode.patch? > > Difficult, difficult... > > Of course, as Shirosaki-san says, IO#read with length should always > be binary mode. > But if setting binmode once, it's never canceled. > So, I doubt that such implicit mode setting in IO#read is right. > Agree. Hiroshi and Heesob, do you guys think can solve this without reverting the changes of #5562? If not, then reverting seems the only alternative. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup�ry