28 May
2024
28 May
'24
9:04 p.m.
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:
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). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5547#note_69235