Branch
Hash :
1480501f
Author :
Date :
2024-12-24T14:45:58
doc: Document mingw with MSVCRT vs. mingw with UCRT. * doc/posix-functions/btowc.texi: Add more details regarding mingw. * doc/posix-functions/fopen.texi: Likewise. * doc/posix-functions/mbrtowc.texi: Likewise. * doc/posix-functions/mbsinit.texi: Likewise. * doc/posix-functions/modf.texi: Likewise. * doc/posix-functions/modff.texi: Likewise. * doc/posix-functions/round.texi: Likewise. * doc/posix-functions/roundf.texi: Likewise. * doc/posix-functions/swprintf.texi: Likewise. * doc/posix-functions/timespec_get.texi: Likewise. * doc/posix-functions/wcrtomb.texi: Likewise.
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
@node btowc
@subsection @code{btowc}
@findex btowc
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/btowc.html}
Gnulib module: btowc
@mindex btowc
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, HP-UX 11.00, mingw.
@item
This function returns WEOF for a NUL argument on some platforms:
Cygwin 1.7.2.
@item
In the C or POSIX locales, this function is not consistent with
Gnulib's @code{mbrtowc} and can return @code{WEOF}:
glibc 2.35, MirOS BSD #10.
@item
In the C or POSIX locales, this function is not consistent with @code{mbrtowc}
on some platforms:
Cygwin 3.4.x, mingw with MSVCRT.
@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.
@mindex btoc32
However, the Gnulib function @code{btoc32}, provided by Gnulib module
@code{btoc32}, operates on 32-bit wide characters and therefore does not have
this limitation.
@end itemize