Pádraig Brady writes: >> This patch should do the trick. It fixes it on Solaris 11.4 >> (cfarm215). >> I couldn't reproduce the failure seen on the CI machines in my NetBSD 10 >> VM. But I see no reason why this fix wouldn't work there too. >> Will push it tomorrow. > > I would have left iswnbspace() in wc.c, calling into c32isnbspace(), > otherwise the double negative with posixly_correct is awkward. > Anyway the logic looks good. I was about 50/50 whether the double negation was too ugly to use. :) I'll leave the function there, but name it maybe_c32isnbspace(). Since I don't want the function to be misunderstood as a wchar_t function. Pushed the attatched two patches. The second fixes a 'make syntax-check' failure. Will close this bug now. Collin P.S. I actually just noticed this unchanged hunk in my diff: $ git ls-files | grep -E '\.[ch]' | xargs grep -F 'isw' src/wc.c: in_word2 = (! iswspace (wide_char) Okay to change this one to the c32 variant? Collin