Walter Bright Wrote:

> The D functions are supposed to send UTF16 to Windows via the "W" interface. 
> What Windows does with it is up to Windows. The functions are NOT supposed to 
> do 
> a multibyte conversion and send it to the Windows "A" interface, except for 
> the 
> Win9x versions.

They can't just blindly call WriteConsoleW because according to msdn it fails 
if stdout is not a console. Shin Fujishiro's code is the correct one.

Reply via email to