Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87a4xmradu.fsf@keithp.com>
Date: Thu, 05 Feb 2026 16:19:57 -0800
From: Keith Packard <keithp@...thp.com>
To: Joseph Myers <josmyers@...hat.com>, libc-coord@...ts.openwall.com
Subject: Re: c8rtowc and wcrtoc8


> Indeed, the version of "Restartable Functions for Efficient Character 
> Conversion" that was actually accepted into C2y (N3366 plus an editorial 
> correction) is explicit that "For the UTF-8, UTF-16, and UTF-32 encodings, 
> collectively referred to as the Unicode encodings, an indivisible unit of 
> work for a read operation shall be the sequence of code units that 
> corresponds to one Unicode code point.".

Hrm. C23 includes c8rtomb which accepts a single byte per call,
presumably saving intermediate state in the provided mbstate_t buffer?

Is there some general change in direction with the idea that this design
is not desired any longer?

-- 
-keith

Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.