vasnprintf: Fix crash in %ls directive.
[gnulib.git] / ChangeLog
index c1810ba..7b6570d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
 2010-04-10  Bruno Haible  <bruno@clisp.org>
 
+       vasnprintf: Fix crash in %ls directive.
+       * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
+       string is passed as argument to %ls, with no precision and no width.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix multiple test failures on mingw.
+       * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
+       _snprintf, or snwprintf, not _snwprintf.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       write: Fix a C++ test error on mingw.
+       * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf test: Reduce code duplication.
+       * tests/test-vasnprintf.c (test_function): New function, extracted from
+       test_vasnprintf.
+       (test_vasnprintf, test_asnprintf): Invoke it.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
        strnlen: Fix warning in C++ mode on MacOS X.
        * lib/string.in.h (strnlen): Use the modern idiom.
        * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of