wahern regerror might not be idempotent if another thread changed the locale…
b4c1a08 Jun 30, 2022
regerror might not be idempotent if another thread changed the locale…
…, so don't assume the output lengths will match after we retry with a larger buffer (POSIX is silent on this, though it does say the result of regexec is undefined if the locale changed from when regcomp was called)
b4c1a08