X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=5ac07f2b94101322e8b0d5b537caaa0a813bd3c8;hb=de9f4b1;hp=8c80d6a9c9c935b67ed7f93930146c495fec14a8;hpb=ba564f2164f381af846d9695e6465cffe7ec918c;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 8c80d6a9c..5ac07f2b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,85 @@ +2010-04-10 Bruno Haible + + vasnprintf: Add more tests. + * tests/test-vasnprintf-posix.c: Include . + (test_function): Test converting an invalid wide string. + + vasnprintf: Correct handling of unconvertible wide string arguments. + * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and + gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99. + * modules/vasnprintf (Files): Add m4/printf.m4. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + 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 . + +2010-04-10 Bruno Haible + + 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 + + write: Fix a C++ test error on mingw. + * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-10 Bruno Haible + + 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 + + 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 + defining strnlen as a macro already in . + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize + REPLACE_STRNLEN. + * modules/string (Makefile.am): Substitute REPLACE_STRNLEN. + Reported by Jarno Rajahalme . + +2010-04-08 James Youngman + + * doc/manywarnings.texi (manywarnings): Add missing parenthesis in + the example. + +2010-04-09 Jim Meyering + + maint.mk: print better diagnostic when there is no $(_hv_file) + * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and + announce that when $(_hv_file) (aka help-version) does not exist. + + init.sh: run tr in the "C" locale to avoid multibyte interpretation + * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does + not try to interpret its random input bytes. Jarno Rajahalme reported + that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence". + on Darwin 10.3.0 with LC_CTYPE=UTF-8. + (mktempd_): Likewise, just in case. + + ftruncate: add two years to projected module removal date: 2012 + * m4/ftruncate.m4: Adjust comments. + + ftruncate: mark module as obsolete; even MinGW provides it, now + * modules/ftruncate (Status): Obsolete. + (Notice): Say that. + * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it. + http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203 + 2010-04-08 Bruno Haible Fix side effects from tests-related modules. @@ -28,6 +110,7 @@ * tests/test-trunc2.c (check): Likewise. * tests/test-truncf2.c (check): Likewise. * tests/test-round2.c (equal): Likewise. + Reported by Jarno Rajahalme . 2010-04-07 Karl Berry