Commit 075d2812 authored by Bruno Haible's avatar Bruno Haible

Allow wcwidth to return -1 in some cases.

parent edd81618
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.
......@@ -56,11 +56,11 @@ main ()
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment