C++ Logo

sg16

Advanced search

Re: [SG16] Agenda for the 2021-10-06 SG16 telecon

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Wed, 6 Oct 2021 18:07:21 +0200
On 06/10/2021 17.24, Tom Honermann wrote:
> I disagree with that, at least in general. a UTF-16 code unit fits in a single byte when CHAR_BIT is >= 16.

Agreed. We should keep that in mind, but I hope the result there will be obvious
once we sort out wchar_t.

>> wchar_t is suitable to represent any encoding that represent a character in N bytes (or a sequences of N bytes), for N = sizeof(wchar_t)/CHAR_BITS
> Once we lift the restriction in [basic.fundamental]p8 <http://eel.is/c++draft/basic.fundamental#8>, yes.

No, the statement about wchar_t is true today; it says "represent a character",
not a "a code unit".

Jens

Received on 2021-10-06 11:07:39