On 18/03/2022 14:59, Pádraig Brady wrote:
The attached should fix this up.
The following should make this more efficient for the normal unibyte case, as one can't have NUL chars in any multi-byte encodings. - if (MB_CUR_MAX > 1) \ + if (MB_CUR_MAX > 1 && *(s + 1)) \