TDPL: Foreach over Unicode string

Walter Bright newshound2 at digitalmars.com
Sat Jul 31 18:13:01 PDT 2010


Sean Kelly wrote:
> I found the C code via grep so I may not be looking at the correct
> implementation of each function, but it matches the behavior I'm seeing.  I
> think the standard C routines were used in D to make sure IO buffers were
> shared with C, etc.  Are you saying this should be changed to use the Windows
> routines instead?  Alternately, is fputwc() really doing the right thing by
> using the default locale?  I'd imagine so except that this approach doesn't
> work in my tests on Windows.

I don't know, it's been years since I worked on that code.

The idea is that D and C writes to stdio can be interleaved.


More information about the Digitalmars-d mailing list