On Tue Apr 30 16:48:38 2024 +0000, Piotr Caban wrote:
It looks like it can be changed to something like:
if (!truncate && curlen && !*str[curlen-1]) { *start = 0; return EILSEQ; }
I didn't test it so maybe I'm missing something (also it will be easier to test after the tests set locale/codepage as needed).
Yes, it works this way, thanks.