[Info-vax] Character sets
Arne Vajhøj
arne at vajhoej.dk
Tue Sep 6 14:42:53 EDT 2022
On 9/3/2022 3:30 PM, Stephen Hoffman wrote:
> Pedant notes: yes, I do know about wchar_t and friends in C and C++,
> which is... a mess, and is also ill-suited for UTF-8. Probably better
> to use char16_t and char32_t, if you do need fixed-width wide character
> storage.
wchar_t is a typical C vague definition where char16_t and char32_t are
much more clearly defined.
But wchar_t got runtime support.
C (and for that matter also C++) IO functions does not not
make writing/reading UTF-8 easy.
Newer languages does much better.
Arne
More information about the Info-vax
mailing list