[PATCH] conform: add ISO23 data for uchar.h
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Nov 23 13:04:51 GMT 2026
On 21/10/26 08:34, Andreas Schwab wrote:
>
> ---
> conform/data/uchar.h-data | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/conform/data/uchar.h-data b/conform/data/uchar.h-data
> index ed9d1b2d9f..755c54ac11 100644
> --- a/conform/data/uchar.h-data
> +++ b/conform/data/uchar.h-data
> @@ -9,4 +9,10 @@ function size_t c16rtomb (char *, char16_t, mbstate_t *)
> function size_t mbrtoc32 (char32_t *, const char *, size_t, mbstate_t *)
> function size_t c32rtomb (char *, char32_t, mbstate_t *)
>
> +#if defined ISO23
> +type char8_t
> +function size_t c8rtomb (char *, const char8_t, mbstate_t *)
The C23 and glibc declare this parameter as a plain char8_t. It does not really
matter here, but I would match the standard.
With that:
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> +function size_t mbrtoc8 (char8_t *, const char *, size_t, mbstate_t *)
> +#endif
> +
> #endif
More information about the Libc-alpha
mailing list