Mercurial > gnulib
view doc/posix-functions/wcrtomb.texi @ 40137:9e646f080d9e
wcrtomb: Work around bug on Android 4.3.
* m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
the C locale.
* lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
which does not have the 'wctomb' function.
* doc/posix-functions/wcrtomb.texi: Mention the Android bug.
* tests/test-wcrtomb.c (main): Accept argument '5'.
* tests/test-wcrtomb.sh: Add tests in the POSIX locale.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 25 Jan 2019 23:39:28 +0100 |
parents | 11af6bbd6df5 |
children |
line wrap: on
line source
@node wcrtomb @section @code{wcrtomb} @findex wcrtomb POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html} Gnulib module: wcrtomb Portability problems fixed by Gnulib: @itemize @item This function is missing on some platforms: Minix 3.1.8, HP-UX 11.00, IRIX 6.5, Solaris 2.6, mingw, Interix 3.5. @item This function produces wrong characters in the C locale on some platforms: Android 4.3. @item This function returns 0 when the first argument is NULL in some locales on some platforms: AIX 4.3, OSF/1 5.1, Solaris 11.3. @end itemize Portability problems not fixed by Gnulib: @itemize @item On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @end itemize