From: Bruno Haible Date: Sun, 21 Oct 2007 23:35:10 +0000 (+0200) Subject: Allow wcwidth to return -1 in some more cases. Fixes test failure on Solaris 10. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5332d5a42d457c0d1894b242beace63916893650;p=pspp Allow wcwidth to return -1 in some more cases. Fixes test failure on Solaris 10. --- diff --git a/tests/test-wcwidth.c b/tests/test-wcwidth.c index 50c004006f..0c3c0047bf 100644 --- a/tests/test-wcwidth.c +++ b/tests/test-wcwidth.c @@ -65,7 +65,7 @@ main () /* Test width of some zero width characters. */ ASSERT (wcwidth (0x200B) == 0); - ASSERT (wcwidth (0xFEFF) == 0); + ASSERT (wcwidth (0xFEFF) <= 0); /* Test width of some CJK characters. */ ASSERT (wcwidth (0x3000) == 2);