10.71.69 wcwidth
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcwidth.html
Gnulib module: wcwidth
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
Minix 3.1.8, mingw, MSVC 14.
- This function is not declared (without
-D_GNU_SOURCE
) on some platforms:
glibc 2.8.
- This function handles combining characters in UTF-8 locales incorrectly on some
platforms:
macOS 14, NetBSD 9.3, OpenBSD 5.8, MidnightBSD 1.1.
- This function returns 2 for characters with ambiguous east asian width, even in
Western locales, on some platforms:
Solaris 11.4.
Portability problems not fixed by Gnulib:
- On Windows and 32-bit AIX platforms,
wchar_t
is a 16-bit type and therefore cannot
accommodate all Unicode characters.
However, the Gnulib function c32width
, provided by Gnulib module
c32width
, operates on 32-bit wide characters and therefore does not
have this limitation.
- This function treats zero-width spaces like control characters on some
platforms:
AIX 7.2.