On Tue Apr 30 16:24:40 2024 +0000, Paul Gofman wrote:
Removing it, or checking just one character for curlen == 1 or curlen == 2 breaks the test, the only way to remove it that I see so far is to manually unroll it. Or do you mean something else?
It looks like it can be changed to something like: ```c 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).