[PATCH v5 1/5] libcpp: reject codepoints above 0x10FFFF
Jason Merrill
jason@redhat.com
Mon Feb 13 15:53:17 GMT 2023
On 1/25/23 13:06, Ben Boeckel wrote:
> Unicode does not support such values because they are unrepresentable in
> UTF-16.
>
> libcpp/
>
> * charset.cc: Reject encodings of codepoints above 0x10FFFF.
> UTF-16 does not support such codepoints and therefore all
> Unicode rejects such values.
It seems that this causes a bunch of testsuite failures from tests that
expect this limit to be checked elsewhere with a different diagnostic,
so I think the easiest thing is to fold this into _cpp_valid_utf8_str
instead, i.e.:
Make sense?
Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libcpp-add-a-function-to-determine-UTF-8-validity-of.patch
Type: text/x-patch
Size: 2250 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20230213/bada7e71/attachment.bin>
More information about the Gcc
mailing list