+2019-12-12 Bruno Haible <bruno@clisp.org>
+
+ wcwidth: Avoid test failure on AIX 7.2.
+ * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
+ negative.
+ * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
+
2019-12-12 Bruno Haible <bruno@clisp.org>
ilogbl: Work around Cygwin bug.
@item
On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot
accommodate all Unicode characters.
+@item
+This function treats zero-width spaces like control characters on some
+platforms:
+AIX 7.2.
@end itemize
#endif
/* Test width of some zero width characters. */
- ASSERT (wcwidth (0x200B) == 0);
+ /* While it is desirable that U+200B, U+200C, U+200D have width 0,
+ because this makes wcswidth work better on strings that contain these
+ characters, it is acceptable if an implementation treats these
+ characters like control characters. */
+ ASSERT (wcwidth (0x200B) <= 0);
ASSERT (wcwidth (0xFEFF) <= 0);
/* Test width of some math symbols.