Mercurial > hg > octave-kai > gnulib-hg
view doc/posix-functions/mbrtowc.texi @ 11628:59047bad770e
strstr, strcasestr: replace on platforms with broken memchr
* modules/strstr: Split into...
* modules/strstr-simple: ...new module that does not care about
performance, but does care about glibc bug.
* m4/strstr.m4 (gl_FUNC_STRSTR): Split...
(gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
if platform memchr is broken, per Debian bug 521737.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
memchr.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
* doc/posix-functions/strstr.texi (strstr): Document the fix.
* doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
* modules/mountlist (Depends-on): Add strstr-simple.
* modules/gen-uni-tables (Depends-on): Likewise.
* modules/argz (Depends-on): Add strstr.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Tue, 16 Jun 2009 06:14:05 -0600 |
parents | 13e9d2ea1d1d |
children | bb0ceefd22dc |
line wrap: on
line source
@node mbrtowc @section @code{mbrtowc} @findex mbrtowc POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/mbrtowc.html} Gnulib module: mbrtowc 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 put the state into non-initial state when parsing an incomplete multibyte character on some platforms: AIX 5.1, OSF/1 5.1. @item This function does not produce correct results in the zh_CN.GB18030 locale on some platforms: Solaris 8. @item This function does not ignore the @code{pwc} argument if the string argument is NULL on some platforms: OSF/1 5.1. @item This function returns the total number of bytes that make up the multibyte character, not the number of bytes that were needed to complete the multibyte character, on some platforms: HP-UX 11.11, Solaris 10. @item This function may not return 0 when parsing the NUL character on some platforms: Solaris 9. @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