Mercurial > hg > octave-shane > gnulib-hg
view doc/posix-functions/mbsrtowcs.texi @ 13827:805b81dc0827
stdio: Work around compilation error due to renameat() on Solaris 10.
* lib/stdio.in.h: Include <unistd.h> on Solaris.
* lib/renameat.c: Don't include <unistd.h> here.
* doc/posix-functions/renameat.texi: Mention the Solaris problem.
Reported by Paul Eggert and Eric Blake.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 27 Oct 2010 02:53:42 +0200 |
parents | bb0ceefd22dc |
children | 3bbfc7e37ec2 |
line wrap: on
line source
@node mbsrtowcs @section @code{mbsrtowcs} @findex mbsrtowcs POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mbsrtowcs.html} Gnulib module: mbsrtowcs Portability problems fixed by Gnulib: @itemize @item This function is missing on some platforms: HP-UX 11.00, IRIX 6.5, Solaris 2.6, mingw, Interix 3.5. @item This function does not work on some platforms: HP-UX 11, Solaris 10. @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 implementation does not update the state in this case; the MacOS X and FreeBSD implementations do. 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