diff options
author | Bruno Haible <bruno@clisp.org> | 2011-02-12 20:43:40 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-02-12 20:51:56 +0100 |
commit | c9dc6fff80d6b2be612fddb02b0141b85a9744aa (patch) | |
tree | fc4dc73874cf01a1c5443d5fa665768eb1897744 /lib/wcsrtombs.c | |
parent | aa887f85e12926ab87c37991447f7ded7d08a43b (diff) | |
download | gnulib-c9dc6fff80d6b2be612fddb02b0141b85a9744aa.tar.gz |
wcsrtombs: Work around bug on native Windows.
* m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
* lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
instead of len.
* doc/posix-functions/wcsrtombs.texi: Document mingw bug.
Diffstat (limited to 'lib/wcsrtombs.c')
-rw-r--r-- | lib/wcsrtombs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wcsrtombs.c b/lib/wcsrtombs.c index 72423b524b..ebbca78f65 100644 --- a/lib/wcsrtombs.c +++ b/lib/wcsrtombs.c @@ -37,7 +37,7 @@ rpl_wcsrtombs (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps) { const wchar_t *temp_src = *srcp; - return wcsrtombs (NULL, &temp_src, len, ps); + return wcsrtombs (NULL, &temp_src, (size_t)-1, ps); } else # endif |