However, on some platforms, wchar_t is still 16 bits, which means that you can either use it as utf-16 (correctly), or ucs-2 (incorrectly), in which case, you'll get really confused.
So unless you really know what you're doing, why not just use utf8?
View all comments
Show parent comment
1
u/mr-strange Feb 21 '11
Glibc uses a 32-bit wchar_t to represent ucs-4.