TDPL: Foreach over Unicode string

Kagamin spam at here.lot
Sat Jul 31 04:44:15 PDT 2010


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.


More information about the Digitalmars-d mailing list