diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-27 14:28:11 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-27 14:29:25 +0100 |
commit | 777cb5e9cb12fd56d998f2eaa9348dd4e0078cac (patch) | |
tree | 860a9b97679852b6ffd2d6ad06d41d76a79bb0ed /doc | |
parent | 94879b67cd7832e8a60df732a23fb764f2a15075 (diff) | |
download | gnulib-777cb5e9cb12fd56d998f2eaa9348dd4e0078cac.tar.gz |
mbrtowc: Work around a Solaris 7 bug.
* m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
(gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
(gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
MBRTOWC_NULL_ARG1_BUG.
* lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
* tests/test-mbrtowc.c (main): Test support of a NULL first argument.
* doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/mbrtowc.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/mbrtowc.texi b/doc/posix-functions/mbrtowc.texi index 233fb022f5..e158ca2961 100644 --- a/doc/posix-functions/mbrtowc.texi +++ b/doc/posix-functions/mbrtowc.texi @@ -20,6 +20,9 @@ This function does not produce correct results in the zh_CN.GB18030 locale on some platforms: Solaris 8. @item +This function fails if the @code{pwc} argument is NULL on some platforms: +Solaris 7. +@item This function does not ignore the @code{pwc} argument if the string argument is NULL on some platforms: OSF/1 5.1. |