This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] utf-16 and utf-32 support in C and C++
- From: Jason Merrill <jason at redhat dot com>
- To: Kris Van Hees <kris dot van dot hees at oracle dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 22 Mar 2008 11:05:09 -0400
- Subject: Re: [PATCH] utf-16 and utf-32 support in C and C++
- References: <20080313193208.GE19427@oracle.com>
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.