Hash :
1a602613
Author :
Date :
2023-07-26T14:13:48
wctype-h: Work around iswprint bug on mingw. * lib/wctype.in.h (rpl_iswprint): On mingw, don't use the system's iswprint function. * tests/test-wctype-h.c (main): Verify that this character class contains the ASCII space but not tab and newline. * tests/test-c32isprint.c (main): For tab, \v, \f, expect the same value on native Windows as on other platforms. * doc/posix-functions/iswprint.texi: Mention the mingw bug.
@node iswprint
@section @code{iswprint}
@findex iswprint
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/iswprint.html}
Gnulib module: wctype-h
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8.
@item
This function cannot be called from plain inline or extern inline functions
on some platforms:
OS X 10.8.
@item
This function returns true for the tab (@code{'\t'}) character
on some platforms:
mingw.
@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{c32isprint}, provided by Gnulib module
@code{c32isprint}, operates on 32-bit wide characters and therefore does not
have this limitation.
@end itemize