On Sun, Dec 11, 2011 at 11:42 PM, U.Nakamura <usa / garbagecollect.jp> wrote: > Hello, > > In message "[ruby-core:41578] [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP" > ¨ÂÄåã®±°¬²°±°¶º´¹ºµµ¼ìõéóìáöåîáÀçíáéì®ãïí¾ ÷òïôåº >> 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ñÓy