On 16/09/2025 19:38, Paul Eggert wrote:
On 2025-09-16 08:47, Pádraig Brady wrote:
I'm half wondering should mcel_scan() restore errno,
as err==-1 implies EILSEQ on glibc at least?
mcel_scan currently does not itself inspect or set errno. This is for
speed. As mcel_scan calls mbrtoc32 in some cases, it might set errno in
those cases. I'm not quite following why we should slow mcel_scan down
to preserve errno; if 'fold' needs that I suppose it could use a wrapper.
Right. fold doesn't need it, and has handled this another way.
The documentation update is fine and appreciated.
cheers,
Padraig