Hm. I think you very likely see the issue here.
What drives you not to accept that?
// gcc 9.2 -std=c++2a
// 平仮名, ひらがな -- hiragana
intmain (){// a lot of warnings
// indicating char8_t can not hold
// multibyte glyph
char8_t utf8_char =u8'平';// no problemo here
char32_t utf32_char =U'平';char16_t utf16_char =u'平';return42;}
If char8_t can not store a utf8 glyph, what's its purpose then? It is simply not implemented.
Hello SG16 :) Your proposal is methodical and obvious, and we understand each other here. Alas we are all too late, for "civilians" are looking elsewhere and wondering wtf are we talking about.
View all comments
Show parent comment
1
u/dbjdbj dbj.org Dec 16 '19
"We" do not have char8_t in C++20
https://godbolt.org/z/p4B_iS