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