poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / btowc.texi
blobfa1ea9b503dd45bb881cdb67b71936ae2b28666b
1 @node btowc
2 @section @code{btowc}
3 @findex btowc
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/btowc.html}
7 Gnulib module: btowc
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 Minix 3.1.8, HP-UX 11.00, mingw.
14 @item
15 This function returns WEOF for a NUL argument on some platforms:
16 Cygwin 1.7.2.
17 @item
18 This function does not return WEOF for an EOF argument on some platforms:
19 IRIX 6.5.
20 @end itemize
22 Portability problems not fixed by Gnulib:
23 @itemize
24 @item
25 On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and
26 therefore cannot accommodate all Unicode characters.
27 However, the Gnulib function @code{btoc32}, provided by Gnulib module
28 @code{btoc32}, operates on 32-bit wide characters and therefore does not have
29 this limitation.
30 @item
31 In the C or POSIX locales, this function is not consistent with
32 Gnulib's @code{mbrtowc} and can return @code{WEOF}:
33 glibc 2.23, MirOS BSD #10.
34 @end itemize