
27 Feb
2007
27 Feb
'07
7:50 p.m.
Sebastian Redl <sebastian.redl@getdesigned.at> writes:
Actually, it is whatever the compiler decides it should be. On Linux systems with a default GCC, yes, that's UTF-32, but under Windows it's typically UCS-2 or UTF-16 (with or without surrogate support, that is).
Actually, it is what *you* put into it. Compiler decides what the size of wchar_t should be. As long as your code points fit into that size, you will be fine. For example you can store UTF-16 characters in 4-byte wchar_t. -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding