10.71.30 wcrtomb
¶
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcrtomb.html
Gnulib module: wcrtomb
Portability problems fixed by Gnulib:
- This function is missing on some platforms:
Minix 3.1.8, HP-UX 11.00, mingw.
- This function produces wrong characters in the C locale on some platforms:
Android 4.3.
- This function returns 0 when the first argument is NULL in some locales on some platforms:
Solaris 11.3.
- This function does not ignore the second argument when the first argument is NULL on some platforms:
mingw with UCRT, MSVC 14.
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 ISO C11 function c32rtomb
, provided by Gnulib module
c32rtomb
, operates on 32-bit wide characters and therefore does not have
this limitation.