Pádraig Brady writes: >> Thanks, I forgot about that function. That sounds like a good idea >> to >> me. We can be nice to people who do not use glibc. >> We will have to hoist the 'posixly_correct' check out of it before >> though. Technically POSIX says that 'fold -s' should only break at >> characters. But I rather avoid adding more >> getenv ("POSIXLY_CORRECT") to programs that do not yet have them. > > Yes I agree that fold should not depend on POSIXLY_CORRECT, > so c32isnbspace() should only look at the passed char. 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. Collin