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.