diff options
author | ache <ache@FreeBSD.org> | 2002-08-17 20:11:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-08-17 20:11:31 +0000 |
commit | 75de318dfb292ab129bd06b5d754547a0104e5d7 (patch) | |
tree | d3b0bc21d6f02195f54a11d1e05864d21e725677 /lib/libc/locale/iswctype.c | |
parent | 3737348a0329989a78acd095a753e87d9fe128b7 (diff) | |
download | FreeBSD-src-75de318dfb292ab129bd06b5d754547a0104e5d7.zip FreeBSD-src-75de318dfb292ab129bd06b5d754547a0104e5d7.tar.gz |
According to SUSv2, wcwidth() should return -1 for non-printing characters
Diffstat (limited to 'lib/libc/locale/iswctype.c')
-rw-r--r-- | lib/libc/locale/iswctype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/iswctype.c b/lib/libc/locale/iswctype.c index 0314037..dc3c52c 100644 --- a/lib/libc/locale/iswctype.c +++ b/lib/libc/locale/iswctype.c @@ -219,6 +219,6 @@ wcwidth(wc) int width = __maskrune(wc, _CTYPE_SWM); return (width ? (unsigned)width >> _CTYPE_SWS - : iswprint(wc) != 0); + : (iswprint(wc) ? 1 : -1)); } |