From: Luis Lavena Date: 2010-11-22T23:10:16+09:00 Subject: [ruby-core:33288] Re: Windows Unicode (chcp 65001) Generates incorrect output On Sun, Nov 21, 2010 at 10:26 AM, NARUSE, Yui wrote: > usa is having a fever now, so I reply though I don't remember the detail.. > > We discussed this problem before to extend writing UTF-8 string to console. > It uses WriteConsoleW and allows to write strings to console even if its > encoding is different from locale or the console's codepage. > (it is the thread of [ruby-dev:35200]) > > The result is rb_w32_write_console and it is in win32-unicode-test... > why is it not merged to trunk...? > > r17825 and another fixes. > http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/win32-unicode-test/win32/win32.c?view=log > I don't know, but I'll attempt to get those merged and report back. > > We use WriteConsoleW only when the output target is console. > Now with the code of win32-unicode-test it is clear what was the intention, but was not using that. Thank you Yui for your answer. Will review the win32-unicode-test branch for specific misses and report back. -- 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