wcsrtombs: Work around bug on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Feb 2011 19:43:40 +0000 (20:43 +0100)
committerIan Beckwith <ianb@erislabs.net>
Wed, 16 Feb 2011 23:25:18 +0000 (23:25 +0000)
commit461ace8afc44fc3ff31c4f8cc0940c50f885fa35
tree1a9293957020dd12d8d0bcd6aaa9dda972377279
parentb4c2b236d0007a7f9226e6ccef82e9e37bdb2b3a
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.
(cherry picked from commit c9dc6fff80d6b2be612fddb02b0141b85a9744aa)
ChangeLog
doc/posix-functions/wcsrtombs.texi
lib/wcsrtombs.c
m4/wcsrtombs.m4