From: Hiroshi Shirosaki Date: 2011-12-07T22:36:37+09:00 Subject: [ruby-core:41523] Re: [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP > > - � �if (_osfile(fd) & FTEXT) { > + � �isconsole = is_console(_osfhnd(fd)); > + � �if (!isconsole && (_osfile(fd) & FTEXT)) { > � � � �return _read(fd, buf, size); > � � } > I intended STDIN doesn't use text mode at #5562 patch. So STDIN doesn't need to use _read(). I thought (_osfile(fd) & FTEXT) should be false in the case of STDIN. -- Hiroshi Shirosaki