Next: , Previous: , Up: Characters   [Contents][Index]


16.2.2 The wchar_t type

The ISO C and POSIX standard creators made an attempt to overcome the dead end regarding the char type. They introduced

Unfortunately, this API and its implementation has numerous problems:

As a consequence, it is better to use multibyte strings. Such multibyte strings can bypass limitations of the wchar_t type, if you use functions defined in Gnulib and GNU libunistring for text processing. They can also faithfully transport malformed characters that were present in the input, without requiring the program to produce garbage or abort.


Next: The char32_t type, Previous: The char type, Up: Characters   [Contents][Index]