Date: Mon, 19 Apr 2021 09:40:03 +0200
Tom,
on Mon, 19 Apr 2021 00:51:26 -0400 you (Tom Honermann
<tom_at_[hidden]>) wrote:
> I'm not aware of anything in C++ that forces better Unicode support.
In C++ the `u` and `U` prefixes guarantee UTF-16 and UTF-32
encoding. In C they don't. Here you only have guaranties of 16 and 32
bit encodings and you need to query a feature test macro to know if
effectively they have the Unicode encodings.
> WG21's SG16 is working to improve support for Unicode, but not with
> the intent to exclude support for legacy character sets.
I know, but this is somewhat better encapsulated into `wchar_t`. In C
that may spread to the other wide character and wide string types.
Jens
on Mon, 19 Apr 2021 00:51:26 -0400 you (Tom Honermann
<tom_at_[hidden]>) wrote:
> I'm not aware of anything in C++ that forces better Unicode support.
In C++ the `u` and `U` prefixes guarantee UTF-16 and UTF-32
encoding. In C they don't. Here you only have guaranties of 16 and 32
bit encodings and you need to query a feature test macro to know if
effectively they have the Unicode encodings.
> WG21's SG16 is working to improve support for Unicode, but not with
> the intent to exclude support for legacy character sets.
I know, but this is somewhat better encapsulated into `wchar_t`. In C
that may spread to the other wide character and wide string types.
Jens
-- :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::
Received on 2021-04-19 02:40:15