What's the problem if add toMBSz to tango.sys.win32 ?
Walter Bright
newshound1 at digitalmars.com
Sat Apr 26 13:39:48 PDT 2008
Frits van Bommel wrote:
> I think what Yibadu is saying (and you're misunderstanding) is that
> Tango calls the *A functions with UTF-8 text, while they expect text in
> whatever the current codepage is.
> The way he proposes to fix this is by porting std.windows.charset.toMBSz
> from Phobos and using that to convert (or writing an equivalent function).
All Windows API calls under Windows 9x should use the "A" api's whenever
possible (instead of the "W" apis), and toMBSz should be called to
convert unicode strings to "A" strings. Phobos does this.
More information about the Digitalmars-d
mailing list