bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: From wchar_t to char32_t


From: Bruno Haible
Subject: Re: From wchar_t to char32_t
Date: Tue, 11 Jul 2023 10:24:10 +0200

Paul Eggert wrote:
> We can improve on that. I installed the attached two performance tweaks; 
> the second tweak cuts that initialization from 128 down to at most 12 
> bytes on those platforms.

Based on the comments in gnulib/lib/mbrtoc16.c, I think it should better
clear the first 24, not 12, bytes of the struct. Otherwise it can be in
a state where mbsinit() returns true but the mbrto* functions have
undefined behaviour.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]