]> git.sesse.net Git - plocate/commitdiff
Work around brokenness in FreeBSD mbtowc().
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 31 Oct 2020 11:25:36 +0000 (12:25 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 31 Oct 2020 11:25:36 +0000 (12:25 +0100)
The manpage claims the return value should be 0 on a null byte,
just like on Linux, but in practice, it returns -1, so we need to
check for end-of-string manually.


No differences found