[PATCH] utf-16 and utf-32 support in C and C++

Jason Merrill jason@redhat.com
Sat Mar 22 15:33:00 GMT 2008


Kris Van Hees wrote:
> The proposals do not exclude the implementation of additional rules
> for concatenation.  This implementation also provides for the following
> valid concatenations.  The rationale behind this choice is that the
> concatenation of strings shall result in a string with the highest width,
> according to the ascending order: char - char16_t - char32_t - wchar.

It is inappropriate to assume that wchar_t will always be at least as 
wide as char32_t; several targets have 16-bit wchar_t.

Jason



More information about the Gcc-patches mailing list