Ansi vs Unicode API
Sean Kelly
sean at invisibleduck.org
Mon Nov 16 07:15:33 PST 2009
Denis Koroskin Wrote:
>
> LPCSTR currently resolves to char*/const(char)*, but it could be better
> for it to be an alias to ubyte*/const(ubyte)* so that user couldn't pass
> unicode string to an API that doesn't expect one. The same is applicable
> to other APIs, too, for example, how does C stdlib co-operate with
> Unicode? I.e. is core.stdc.stdio.fopen() unicode-aware?
Maybe we need a typedef! ;-)
More information about the Digitalmars-d
mailing list