CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2026/03/27 14:35:08

Modified files:
        lib/libc/locale: iswctype.c 

Log message:
wcwidth(3): fix return value for L'\0'

wcwidth(3) doesn't return the correct result for the NUL wide character.
Fix this by special casing the check for this value.

Interestingly our man page documents this special case explicitly, but it
looks like the function was broken in rev 1.2 from 2011 when support for
non-printable characters was added.

Flagged by Sortix os-test.

ok stsp@

Reply via email to