On Mon, Nov 29, 2010 at 8:44 AM, U.Nakamura <usa / garbagecollect.jp> wrote:
> Hello,
>
> In message "[ruby-core:33460] [Ruby 1.9-Bug#4097][Open] Unexpected resultf STDIN.read on Windows"
>  
>> On Ruby 1.9.x, in case of non-ASCII input, STDIN.read(n) returns some garbage attached string.
>
> What version of Windows do you use?
> I guess you use Korean version of 32bit XP, don't you?
>
>
> Tarui-san tested many cases on Japanese version of 32bit XP,
> and has found that this seems to be a bug of Windows itself...
>

Perhaps is associated to the codepage used to input those characters?

I noticed that accented characters do not work for builtin cmd.exe
operations under chcp 437 or 850 for example. But works fine under
1252.

Unicode characters seems to work too under chcp 65001, but not with Ruby.

-- 
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-Exupy