X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=9919aa0ba5d86862a49f3b6aa687019fc5aa8be4;hb=220f76a18ac3dc194f5dc7a53781f646e4fa4de6;hp=95878fe6f9d2245177f4fbcf4c7e8012d661b39c;hpb=fc94d226b18f8f89f105c5212ef8e5a297ce9412;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 95878fe6f..9919aa0ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,258 @@ +2009-02-26 Bruno Haible + + Fix *printf behaviour regarding the %ls directive. + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro. + * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle + NEED_PRINTF_DIRECTIVE_LS. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro. + (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it. + * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke + gl_PREREQ_VASNPRINTF_DIRECTIVE_LS. + * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise. + * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise. + * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise. + * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise. + * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise. + * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise. + * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise. + * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise. + * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise. + * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise. + * doc/posix-functions/fprintf.texi: Update. + * doc/posix-functions/printf.texi: Update. + * doc/posix-functions/snprintf.texi: Update. + * doc/posix-functions/sprintf.texi: Update. + * doc/posix-functions/vfprintf.texi: Update. + * doc/posix-functions/vprintf.texi: Update. + * doc/posix-functions/vsnprintf.texi: Update. + * doc/posix-functions/vsprintf.texi: Update. + * doc/glibc-functions/obstack_printf.texi: Update. + * doc/glibc-functions/obstack_vprintf.texi: Update. + Reported by Eric Blake. + +2009-02-25 Bruno Haible + + * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8 + with known value. + Reported by Gary V. Vaughan . + +2009-02-25 Bruno Haible + + Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8. + * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro. + (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no". + * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug. + Reported by Gary V. Vaughan . + +2009-02-25 Bruno Haible + + Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23. + * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of + INT8_MAX, UINT8_MAX etc. contain casts to elementary types. + * doc/posix-headers/stdint.texi: Mention the HP-UX bug. + Reported by Gary V. Vaughan . + +2009-02-25 Eric Blake + + tests: skip fseek/ftell tests if ungetc is broken + * m4/ungetc.m4: New file. + * modules/fseek-tests: Split test, so ungetc dependency is + separate from rest of test. + * modules/fseeko-tests: Likewise. + * modules/ftell-tests: Likewise. + * modules/ftello-tests: Likewise. + * tests/test-fseek.c (main): Isolate ungetc dependency. + * tests/test-fseeko.c (main): Likewise. + * tests/test-ftell.c (main): Likewise. + * tests/test-ftello.c (main): Likewise. + * tests/test-fseek2.sh: New file. + * tests/test-fseeko2.sh: Likewise. + * tests/test-ftell2.sh: Likewise. + * tests/test-ftello2.sh: Likewise. + +2009-02-25 Ondřej Vašík + + test-getaddrinfo: fix usage of skip return code 77 + * tests/test-gettaddrinfo.c: Return skip code 77 only + for first occurance of skip (4x77 is not 77) + +2009-02-25 Gary V. Vaughan + + strtod: avoid C99 decl-after-statement + * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration. + +2009-02-24 Eric Blake + + strtod: detect HP-UX 11.31 bug + * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug. + Reported by Gary V. Vaughan. + +2009-02-23 Bruno Haible + + Fix invalid read past end of memory block. + * lib/vasnprintf.c (DCHAR_SET): Define. + (local_wcslen): Define only when needed. + (local_strnlen, local_wcsnlen): New functions. + (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls + directives that involve a conversion ourselves. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen, + wcsnlen, mbrtowc, wcrtomb. + * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s. + * tests/test-vasprintf-posix.c (test_function): Likewise. + * tests/test-snprintf-posix.h (test_function): Likewise. + * tests/test-sprintf-posix.h (test_function): Likewise. + Reported by Ben Pfaff . + +2009-02-22 Bruno Haible + + Implement new clarified decomposition of Hangul syllables. + * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables + of type LTV, return only a pairwise decomposition. + * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition): + Likewise. + * tests/uninorm/test-decomposition.c (main): Updated expected result. + * tests/uninorm/test-canonical-decomposition.c (main): Likewise. + * tests/uninorm/test-compat-decomposition.c (main): Likewise. + +2009-02-22 Bruno Haible + + * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle + zero-length results and shrink excess allocated memory. + * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result. + * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise. + * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise. + * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise. + * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise. + * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise. + * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise. + * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise. + * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise. + * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise. + * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise. + * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise. + +2009-02-21 Bruno Haible + + * doc/gnulib.texi: Include safe-alloc.texi earlier. + * doc/safe-alloc.texi: Terminate sentences with a period. Use two + spaces after a period. Put a space between a macro name and its + argument list. Trivial rewordings. + * lib/safe-alloc.c: Include safe-alloc.h right after config.h. + * tests/test-safe-alloc.c: Likewise. Include stdlib.h. + (main): Return 0 explicitly. + 2009-02-21 Bruno Haible + Tests for module 'uninorm/filter'. + * tests/uninorm/test-uninorm-filter-nfc.c: New file. + * modules/uninorm/filter-tests: New file. + + New module 'uninorm/filter'. + * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write, + uninorm_filter_flush, uninorm_filter_free): New declarations. + * lib/uninorm/uninorm-filter.c: New file. + * modules/uninorm/filter: New file. + +2009-02-21 Bruno Haible + + Tests for module 'uninorm/nfkc'. + * tests/uninorm/test-nfkc.c: New file. + * tests/uninorm/test-u8-nfkc.c: New file. + * tests/uninorm/test-u16-nfkc.c: New file. + * tests/uninorm/test-u32-nfkc.c: New file. + * tests/uninorm/test-u32-nfkc-big.sh: New file. + * tests/uninorm/test-u32-nfkc-big.c: New file. + * modules/uninorm/nfkc-tests: New file. + + New module 'uninorm/nfkc'. + * lib/uninorm/nfkc.c: New file. + * modules/uninorm/nfkc: New file. + + Tests for module 'uninorm/nfkd'. + * tests/uninorm/test-nfkd.c: New file. + * tests/uninorm/test-u8-nfkd.c: New file. + * tests/uninorm/test-u16-nfkd.c: New file. + * tests/uninorm/test-u32-nfkd.c: New file. + * tests/uninorm/test-u32-nfkd-big.sh: New file. + * tests/uninorm/test-u32-nfkd-big.c: New file. + * modules/uninorm/nfkd-tests: New file. + + New module 'uninorm/nfkd'. + * lib/uninorm/nfkd.c: New file. + * modules/uninorm/nfkd: New file. + + Tests for module 'uninorm/nfc'. + * tests/uninorm/test-nfc.c: New file. + * tests/uninorm/test-u8-nfc.c: New file. + * tests/uninorm/test-u16-nfc.c: New file. + * tests/uninorm/test-u32-nfc.c: New file. + * tests/uninorm/test-u32-nfc-big.sh: New file. + * tests/uninorm/test-u32-nfc-big.c: New file. + * modules/uninorm/nfc-tests: New file. + + New module 'uninorm/nfc'. + * lib/uninorm/nfc.c: New file. + * modules/uninorm/nfc: New file. + + Tests for module 'uninorm/nfd'. + * tests/uninorm/test-nfd.c: New file. + * tests/uninorm/test-u8-nfd.c: New file. + * tests/uninorm/test-u16-nfd.c: New file. + * tests/uninorm/test-u32-nfd.c: New file. + * tests/uninorm/test-u32-nfd-big.sh: New file. + * tests/uninorm/test-u32-nfd-big.c: New file. + * tests/uninorm/test-u32-normalize-big.h: New file. + * tests/uninorm/test-u32-normalize-big.c: New file. + * tests/uninorm/NormalizationTest.txt: New file, created from + Unicode 5.1.0 NormalizationTest.txt. + * modules/uninorm/nfd-tests: New file. + + New module 'uninorm/nfd'. + * lib/uninorm/nfd.c: New file. + * modules/uninorm/nfd: New file. + + New module 'uninorm/u32-normalize'. + * lib/uninorm/u32-normalize.c: New file. + * modules/uninorm/u32-normalize: New file. + + New module 'uninorm/u16-normalize'. + * lib/uninorm/u16-normalize.c: New file. + * modules/uninorm/u16-normalize: New file. + + New module 'uninorm/u8-normalize'. + * lib/uninorm/u8-normalize.c: New file. + * lib/uninorm/normalize-internal.h: New file. + * lib/uninorm/u-normalize-internal.h: New file. + * modules/uninorm/u8-normalize: New file. + + New module 'uninorm/decompose-internal'. + * lib/uninorm/decompose-internal.c: New file. + * modules/uninorm/decompose-internal: New file. + + Tests for module 'uninorm/composition'. + * tests/uninorm/test-composition.c: New file. + * modules/uninorm/composition-tests: New file. + + New module 'uninorm/composition'. + * lib/uninorm/composition.c: New file. + * lib/uninorm/composition-table.gperf: New file, generated by + gen-uni-tables. + * modules/uninorm/composition: New file. + + Tests for module 'uninorm/compat-decomposition'. + * tests/uninorm/test-compat-decomposition.c: New file. + * modules/uninorm/compat-decomposition-tests: New file. + + New module 'uninorm/compat-decomposition'. + * lib/uninorm/decompose-internal.h: New file. + * lib/uninorm/compat-decomposition.c: New file. + * modules/uninorm/compat-decomposition: New file. + + Tests for module 'uninorm/canonical-decomposition'. + * tests/uninorm/test-canonical-decomposition.c: New file. + * modules/uninorm/canonical-decomposition-tests: New file. + New module 'uninorm/canonical-decomposition'. * lib/uninorm/canonical-decomposition.c: New file. * modules/uninorm/canonical-decomposition: New file. @@ -68,7 +321,7 @@ the parent of a directory specified on the command-line. 2009-02-17 James Youngman - Bruno Haible + Bruno Haible * m4/include_next.m4: Reformulate comment.