Frank Yung-Fong Tang writes: > Also, in gnu's gcc and lib c implementation, wchar_t is defined to be 4 > bytes and always hold utf-32 regardless which locale you are set > to.
Make that "gcc when using GNU libc". When gcc is built to use some other C library it uses that C library's wchar_t. For instance, with Microsoft's C library on Win32 (a configuration knows as mingw), it uses 16-bit (UCS-2, or is it UTF-16?) wchar_t, just like Microsoft's compiler. --tml