diff options
author | Bruno Haible <bruno@clisp.org> | 2020-01-05 02:32:18 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-01-05 02:32:18 +0100 |
commit | 80ae5aa1307114f51bb47b1b1a4ac89a31422956 (patch) | |
tree | 8713f59dd64c2ca467c31ac73ec9e8bf5c1731b1 /doc | |
parent | 578a53d73ca719a5b2edb6aac2c174c099718776 (diff) | |
download | gnulib-80ae5aa1307114f51bb47b1b1a4ac89a31422956.tar.gz |
mbsnrtoc32s: New module.
* lib/uchar.in.h (mbsnrtoc32s): New declaration.
* lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
INTERNAL_STATE, MBRTOWC.
* lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
* lib/mbsnrtoc32s.c: New file.
* m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
* modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
* modules/mbsnrtoc32s: New file.
* tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
* doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/mbsnrtowcs.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/posix-functions/mbsnrtowcs.texi b/doc/posix-functions/mbsnrtowcs.texi index bd7911bf4e..c6defd2c20 100644 --- a/doc/posix-functions/mbsnrtowcs.texi +++ b/doc/posix-functions/mbsnrtowcs.texi @@ -19,8 +19,11 @@ Solaris 11.4. Portability problems not fixed by Gnulib: @itemize @item -On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and therefore cannot -accommodate all Unicode characters. +On Windows and 32-bit AIX platforms, @code{wchar_t} is a 16-bit type and +therefore cannot accommodate all Unicode characters. +However, the Gnulib function @code{mbsnrtoc32s}, provided by Gnulib module +@code{mbsnrtoc32s}, operates on 32-bit wide characters and therefore does not +have this limitation. @item The specification is not clear about whether this function should update the conversion state when the first argument (the destination pointer) is NULL. |