wchar_t on GNU and Win32 - two worlds apart !

Dimitrie O. Paun dpaun at rogers.com
Sun Dec 28 11:30:45 CST 2003


On December 27, 2003 01:11 pm, Subhobroto Sinha wrote:
> But as I am using pure C++, I have to use GLibc's library functions which
> expects wchar_t to be 4 bytes long and NOT 2 bytes.

Herein lies your problem. Mixing the two is not pretty, and I think
it should be avoided to maintain sanity. Just use our msvcrt for the
Unicode functions, it uses 2-byte wchar_t, so you can mix that freely
with the other Win32 functions.

-- 
Dimi.




More information about the wine-devel mailing list