Looking at N 2731 http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2731.pdf to see how conversion from source encoding to u8 literal is handled, I notice that 6.4.5 String Literals para 6 says "For UTF–8 string literals, the array elements have type char", although in 6.4.4.4 Character Constants para 12 it says "A UTF–8 character constant has type unsigned char."_______________________________________________
Is the inconsistency a bug or deliberate?
Liaison mailing list
Liaison@lists.isocpp.org
Subscription: https://lists.isocpp.org/mailman/listinfo.cgi/liaison
Link to this post: http://lists.isocpp.org/liaison/2022/02/1009.php