view doc/posix-functions/mbsnrtowcs.texi @ 39914:32ddb61dde22

mbsnrtowcs: Work around Solaris 11.4 bug. * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New macro. (gl_FUNC_MBSNRTOWCS): Invoke it. * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
author Bruno Haible <bruno@clisp.org>
date Sun, 14 Oct 2018 09:19:12 +0200
parents 0f6b0bb3cee9
children
line wrap: on
line source

@node mbsnrtowcs
@section @code{mbsnrtowcs}
@findex mbsnrtowcs

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mbsnrtowcs.html}

Gnulib module: mbsnrtowcs

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Mac OS X 10.3, FreeBSD 5.2.1, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 4.3.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 11.3, Cygwin 1.5.x, mingw, MSVC 14, Interix 3.5, BeOS, Android 4.4.
@item
This function produces invalid wide characters on some platforms:
Solaris 11.4.
@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.
@item
The specification is not clear about whether this function should update the
conversion state when the first argument (the destination pointer) is NULL.
The glibc, Mac OS X, FreeBSD implementations do update the state in this case.
For portability, when passing a NULL destination argument, it is best to pass
a pointer to a temporary copy of the conversion state.
@end itemize