Hash :
a07c0e4b
Author :
Date :
2023-08-30T02:19:01
wctype: Rely on module iswpunct. * m4/wctype.m4 (gl_FUNC_WCTYPE): Also test whether the "punct" class works. * modules/wctype (Depends-on): Add iswpunct. * tests/test-iswctype.c (main): Add more tests of the "punct" class. * doc/posix-functions/wctype.texi: Mention the Android problem.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
@node wctype
@section @code{wctype}
@findex wctype
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/wctype.html}
Gnulib module: wctype
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, MSVC 9.
@item
This function is declared in @code{<wchar.h>}, not in @code{<wctype.h>}, on
some platforms:
HP-UX 11.00.
@item
This function does not support the @code{"blank"} character class
on some platforms:
mingw.
@item
The object returned by this function for the @code{"blank"} character class
is inconsistent with the @code{iswblank} and @code{isblank} functions
on some platforms:
MSVC 14.
@item
The object returned by this function for the @code{"punct"} character class
is inconsistent with the @code{ispunct} function on some platforms:
Android 11.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and therefore cannot
accommodate all Unicode characters.
However, the Gnulib function @code{c32_get_type_test}, provided by Gnulib
module @code{c32_get_type_test}, operates on 32-bit wide characters and
therefore does not have this limitation.
@end itemize