[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

A. The wchar_t mess

The ISO C and POSIX standard creators made an attempt to fix the first problem mentioned in the section char *’ strings. They introduced

Unfortunately, this API and its implementation has numerous problems:

As a consequence, it is better to use multibyte strings, as explained in the section char *’ strings. Such multibyte strings can bypass limitations of the wchar_t type, if you use functions defined in gnulib and 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.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Daiki Ueno on May, 25 2018 using texi2html 1.78a.