Mercurial > hg > octave-lyh > gnulib-hg
changeset 9383:8234757e613a
Allow wcwidth to return -1 in some cases.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 21 Oct 2007 21:37:48 +0200 |
parents | f31fd684022b |
children | e5e1a09aa484 |
files | ChangeLog tests/test-wcwidth.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-10-21 Bruno Haible <bruno@clisp.org> + * tests/test-wcwidth.c (main): Allow negative result for some control + characters. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B. Needed on OSF/1 5.1.
--- a/tests/test-wcwidth.c +++ b/tests/test-wcwidth.c @@ -56,11 +56,11 @@ ASSERT (wcwidth (0x05B0) == 0); /* Test width of some format control characters. */ - ASSERT (wcwidth (0x200E) == 0); + ASSERT (wcwidth (0x200E) <= 0); ASSERT (wcwidth (0x2060) == 0); #if 0 /* wchar_t may be only 16 bits. */ - ASSERT (wcwidth (0xE0001) == 0); - ASSERT (wcwidth (0xE0044) == 0); + ASSERT (wcwidth (0xE0001) <= 0); + ASSERT (wcwidth (0xE0044) <= 0); #endif /* Test width of some zero width characters. */