X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=740548255c9a7e7174d3c3693b5b72c46233ec5d;hb=3457fcf5632d0411821c6ca61b09c945da9b1063;hp=beff539c1cf8cee5a0c353c35284abcd6ec70f12;hpb=1e3dd41e4d5de03c45c850b2a6c2d989cb272d36;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index beff539c1..740548255 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,2706 @@ +2009-06-25 Sergey Poznyakoff + + Provide additional interfaces and documentation for version-etc + module. + + * lib/version-etc.c (version_etc_arn, version_etc_ar): New + interfaces. + * lib/version-etc.h (version_etc_arn, version_etc_ar): New + prototypes. + +2009-06-24 Bruno Haible + + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of + HAVE_LIB${NAME} macro. + Reported by Sam Steingold . + +2009-06-23 Simon Josefsson + + * modules/hash-tests (test_hash_LDADD): Link to libintl when + needed. + +2009-06-21 Bruno Haible + + Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS + work. + * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME} + together with LIB${NAME}, LTLIB${NAME}. + Reported by Sam Steingold . + +2009-06-20 Jim Meyering + + tests: make sc_require_test_exit_idiom more generic + * top/maint.mk (Exit_witness_file): New overridable variable. + (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh. + Relax test for /^Exit \$fail$$/ to just /^Exit ./. + +2009-06-19 Jim Meyering + + hash: reverse order of src/dst parameters in an internal interface + * lib/hash.c (transfer_entries): Reverse order of parameters to + put DST before SRC. Adjust callers. + + tests: test-hash: avoid wholesale duplication + * tests/test-hash.c (main): Don't copy/paste a 60-line loop. + Instead, use a loop and add a single conditional. + + tests: test-hash: allow seed selection via a command line argument + * tests/test-hash.c (get_seed): New function. + (main): Use it. + +2009-06-19 Eric Blake + + hash: avoid memory leak on allocation failure + * lib/hash.c: (hash_rehash): Avoid memory leak on allocation + failure. Factor repeated algorithm... + (transfer_entries): ...into new helper routine. + (hash_delete): React to hash_rehash return value. + + hash: reduce memory pressure in hash_rehash no-op case + * lib/hash.c (next_prime): Avoid overflow. + (hash_initialize): Factor bucket size computation... + (compute_bucket_size): ...into new helper function. + (hash_rehash): Use new function and open coding to reduce memory + pressure, and avoid a memory leak in USE_OBSTACK code. + Reported by Jim Meyering. + +2009-06-18 Eric Blake + + hash: make rotation more obvious + * modules/hash (Depends-on): Add bitrotate and stdint. + * lib/bitrotate.h (rotl_sz, rotr_sz): New functions. + * lib/hash.c (headers): Drop limits.h. Add stdint.h. + (SIZE_MAX): Rely on headers for definition. + (hash_string) [USE_DIFF_HASH]: Use rotl_sz. + (raw_hasher): Use rotr_sz. + Suggested by Jim Meyering. + + hash: fix memory leak in last patch + * lib/hash.c (hash_rehash): Avoid memory leak. + + hash: avoid no-op rehashing + * lib/hash.c (hash_rehash): Recognize useless rehash attempts. + + hash: provide default callback functions + * lib/hash.c (raw_hasher, raw_comparator): New functions. + (hash_initialize): Use them as defaults. + * tests/test-hash.c (main): Test this. + + hash: minor optimization + * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call + when possible. + (hash_initialize): Document this promise. + (hash_do_for_each, hash_clear, hash_free): Use C89 syntax. + * tests/test-hash.c (hash_compare_strings): Test this. + +2009-06-18 Bruno Haible + + * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is + going to be replaced anyway. + +2009-06-18 Bruno Haible + + * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only + in one place. + (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to + be replaced anyway. + +2009-06-18 Eric Blake + + hash: check for resize before insertion + * lib/hash.c (hash_insert): Check whether bucket usage exceeds + threshold before insertion, so that a pathological hash_rehash + that fills every bucket can still trigger another rehash. + +2009-06-18 Jim Meyering + + hash-tests: add a loop around the small tests + * tests/test-hash.c (main): Repeat small tests with selected + small initial table sizes. + +2009-06-17 Eric Blake + + hash: minor cleanups + * lib/hash.h (hash_entry): Make opaque, by moving... + * lib/hash.c (hash_entry): ...here. + (hash_insert): Clarify restrictions on what can be inserted. + (hash_get_next): Clarify when it is safe to remove an element + during traversal. + (check_tuning): Skip verification when tuning is known safe. + (hash_initialize): Clarify restrictions on tuning. + +2009-06-17 Jim Meyering + and Eric Blake + + hash-tests: new module + * modules/hash-tests: New file. + * tests/test-hash.c: New file. + +2009-06-17 Eric Blake + + strstr-simple: document new module + * MODULES.html.sh: Document new module. + + strstr, strcasestr: replace on platforms with broken memchr + * modules/strstr: Split into... + * modules/strstr-simple: ...new module that does not care about + performance, but does care about glibc bug. + * m4/strstr.m4 (gl_FUNC_STRSTR): Split... + (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr + if platform memchr is broken, per Debian bug 521737. + * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken + memchr. + * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once. + * doc/posix-functions/strstr.texi (strstr): Document the fix. + * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise. + * modules/mountlist (Depends-on): Add strstr-simple. + * modules/gen-uni-tables (Depends-on): Likewise. + * modules/argz (Depends-on): Add strstr. + +2009-06-17 Bruno Haible + + * modules/posix_spawn-internal (Depends-on): Add errno. + +2009-06-17 Bruno Haible + + Define missing ESTALE on Interix 3.5. + * lib/errno.in.h (ESTALE): Assign a value if missing. + * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED. + * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is + missing. + * doc/posix-headers/errno.texi: Mention the Interix bug. + Reported by Jay Krell via Eric Blake. + +2009-06-15 Eric Blake + + memchr, memchr2: add valgrind exception + * lib/memchr.valgrind: New file. + * lib/memchr2.valgrind: New file. + * modules/memchr (Files): Distribute valgrind file. + * modules/memchr2 (Files): Likewise. + + docs: memchr is no longer obsolete + * MODULES.html.sh: Move memchr from obsolete to string.h section. + * lib/string.in.h (memchr): Simplify logic. + +2009-06-14 Jim Meyering + + link-follow: fix the "checking..." message to not mention trailing slash + * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has + never considered trailing slashes. + +2009-06-14 Bruno Haible + + * m4/memchr.m4: Mention also the bug on IA-64. + * doc/posix-functions/memchr.texi: Likewise. + +2009-06-12 Eric Blake + + memchr: detect broken x86_64 and alpha implementations + * modules/memchr-tests (Depends-on): Move mmap detection... + * modules/memchr (Depends-on): ...here. + (configure.ac): Set indicator. + * lib/string.in.h (memchr): Declare replacement. + * modules/string (Makefile.am): Trigger replacement. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise. + * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform + bugs. + * doc/posix-functions/memchr.texi (memchr): Document the bug. + * modules/getpagesize (License): Relax license. + +2009-06-11 Bruno Haible + + * lib/idpriv.h: Add more references. + +2009-06-08 Bruno Haible + + Tests for module 'idpriv-droptemp'. + * modules/idpriv-droptemp-tests: New file. + * tests/test-idpriv-droptemp.sh: New file. + * tests/test-idpriv-droptemp.su.sh: New file. + * tests/test-idpriv-droptemp.c: New file. + + New module 'idpriv-droptemp'. + * lib/idpriv-droptemp.c: New file. + * modules/idpriv-droptemp: New file. + +2009-06-08 Bruno Haible + + Tests for module 'idpriv-drop'. + * modules/idpriv-drop-tests: New file. + * tests/test-idpriv-drop.sh: New file. + * tests/test-idpriv-drop.su.sh: New file. + * tests/test-idpriv-drop.c: New file. + + New module 'idpriv-drop'. + * lib/idpriv.h: New file. + * lib-idpriv-drop.c: New file. + * m4/idpriv.m4: New file. + * modules/idpriv-drop: New file. + +2009-06-08 Bruno Haible + + * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr. + * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise. + * modules/unistdio/u16-vasnprintf (Depends-on): Likewise. + * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise. + * modules/unistdio/u32-vasnprintf (Depends-on): Likewise. + * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise. + * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise. + +2009-06-08 Eric Blake + + test-strstr: use memory fence, when possible + * tests/test-strstr.c (main): Use memory fence, in order to be + more likely to trigger Debian bug 521737. + * modules/strstr-tests (Files): Pull in additional files. + + memchr: no longer obsolete, for wider field testing + * modules/memchr (Status, Notice): Delete, this module is no + longer obsolete. + * modules/vasnprintf (Depends-on): Add memchr. + +2009-06-07 Jim Meyering + + hash: declare some functions with the warn_unused_result attribute + * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define. + +2009-06-07 Bruno Haible + + * tests/test-alignof.c: Don't test int64_t if it does not exist. + Reported by Eric Blake. + +2009-06-06 Eric Blake + + test-alignof: fix typo with long double + * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid + compiler error. + +2009-06-06 Neil Jerram (tiny change) + + Escape non-texinfo { and }s. + * doc/ld-output-def.texi (Visual Studio Compatibility): Fix + markup error. + +2009-06-04 Jim Meyering + + gitlog-to-changelog: don't infloop on an empty commit log + * build-aux/gitlog-to-changelog: Warn about an empty log message. + Reported by Boris Petersen . + +2009-06-03 Mike Frysinger + + version-etc: extend for packagers + Add three new configure options, intended for packagers: + --with-packager="packager name" + --with-packager-version="packager-specific version" + --with-packager-bug-reports="packager bug reporting" + An example with coreutils: + $ ./configure \ + --with-packager=Gentoo \ + --with-packager-bug-report=http://bugs.gentoo.org/ \ + --with-packager-version="patchset 1.6" + $ ./src/ls --version | head -n3 + ls (GNU coreutils) 7.1-dirty + Packaged by Gentoo (patchset 1.6) + Copyright (C) 2009 Free Software Foundation, Inc. + Note that the bug reporting info via --help doesn't show up because + coreutils uses its own custom emit_bug_reporting_address() implementation + in src/system.h. If it didn't, it'd look like: + $ ./src/ls --help | tail -n4 + Report bugs to . + Report Gentoo bugs to . + GNU coreutils home page: . + General help using GNU software: . + * lib/version-etc.c: Print new information, if provided. + * m4/version-etc.m4: New file. + * modules/version-etc (Files): Add m4/version-etc.m4. + (configure.ac): Add gl_VERSION_ETC. + +2009-05-31 Bruno Haible + + * tests/test-alignof.c: Include . Check also 'long double' + and 'int64_t'. + * modules/alignof-tests (Dependencies): Add stdint. + Reported by Eric Blake. + +2009-05-31 Bruno Haible + + * lib/alignof.h (alignof_slot, alignof_type, alignof): Document + restriction due to compiler bugs. + Reported by Eric Blake. + +2009-05-31 Simon Josefsson + Bruno Haible + + Fix test-alignof failure. + * lib/alignof.h (alignof_slot): New macro. + (alignof_type): New macro, with the same semantics as the previous + 'alignof'. + (alignof): Alias to alignof_slot. + * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also + check that the results are usable as constant expressions. + +2009-05-31 Bruno Haible + + * tests/zerosize-ptr.h (zerosize_ptr): Specify more details. + * tests/test-memchr.c (main): Check that memchr does not read past the + first occurrence of the byte. + * tests/test-strstr.c (main): Update comment. + Suggested by Eric Blake. + +2009-05-30 Bruno Haible + + * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more + detail how to use dumpbin. + Reported by David Byron . + +2009-06-02 Simon Josefsson + + * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'. + +2009-06-02 Simon Josefsson + + * m4/manywarnings.m4: Add GCC 4.4 warnings. + +2009-05-28 Bruno Haible + + * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on + build-aux/ files. + +2009-05-28 Simon Josefsson + + * gnulib-tool (func_import): Transform license on build-aux/ files too. + +2009-05-27 Simon Josefsson + + * gnulib-tool (sed_transform_main_lib_file) + (sed_transform_testsrelated_lib_file): : Don't use non-POSIX + regexps. + +2009-05-26 Simon Josefsson + + * tests/test-strstr.c: Add another self-test. + * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of + strdup. Suggested by Eric Blake . + +2009-05-23 Bruno Haible + + * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26 + change. + +2009-05-21 Bruno Haible + + Simplify use of mode_t varargs. + * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that + uses 'mode_t' or 'int'. + * lib/openat.c (openat): Likewise. + * lib/open-safer.c (open_safer): Likewise. + * m4/mode_t.m4: New file. + * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T. + * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise. + * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise. + * modules/open (Files): Add m4/mode_t.m4. + * modules/openat (Files): Likewise. + * modules/fcntl-safer (Files): Likewise. + Suggested by Eric Blake. + +2009-05-21 Pádraig Brady + + * doc/glibc-functions/fallocate.texi: New file. + * doc/gnulib.texi: Include it. + +2009-05-21 Eric Blake + Bruno Haible + + * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote + invocations. + * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise. + +2009-05-21 Eric Blake + Bruno Haible + + Second attempt to work around an AIX 5.3, 6.1 compiler bug with + include_next. Fix of 2008-11-20 commit. + * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set + NEXT_AS_FIRST_DIRECTIVE_FOO_H. + * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of + NEXT_MATH_H. + * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H + instead of NEXT_MATH_H. + +2009-05-21 Bruno Haible + + Avoid redefinition warnings for SIZE_MAX. + * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h. + Reported by Simon Josefsson. + +2009-05-21 Bruno Haible + + * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of + AC_CACHE_VAL. + +2009-05-20 Bruno Haible + + Make zeroptr.h work on mingw. + * tests/zerosize-ptr.h: Test for the presence of and + mprotect. + * modules/memchr-tests (configure.ac): Also test for sys/mman.h. + * modules/memchr2-tests (configure.ac): Likewise. + * modules/memcmp-tests (configure.ac): Likewise. + * modules/memmem-tests (configure.ac): Likewise. + * modules/memrchr-tests (configure.ac): Likewise. + Reported by Simon Josefsson. + +2009-05-20 Simon Josefsson + + * tests/test-glob.c: Include string.h for strcmp prototype. + +2009-05-20 Simon Josefsson + + * modules/getdelim (Depends-on): Add explicit stdint, although it + was implicitly already pulled in via realloc-posix. + * lib/getdelim.c: Get SIZE_MAX from stdint.h. + +2009-05-20 Simon Josefsson + + MinGW and IRIX does not have sa_family_t type. Reported by "Tom + G. Christensen" . + * m4/sys_socket_h.m4: Check for sa_family_t. + * lib/sys_socket.in.h: Typedef sa_family_t when needed. + * modules/sys_socket: Substitute HAVE_SA_FAMILY_T. + * tests/test-sys_socket.c: Check that sa_family_t works. + +2009-05-18 Eric Blake + + maint.mk: allow gnulib_dir in VPATH build + * top/maint.mk (gnulib_dir): Make relative to $(srcdir). + +2009-05-15 Jim Meyering + + maint.mk: Give gnulib_dir a default definition. + * top/maint.mk (gnulib_dir): Define to 'gnulib', by default. + Thus, most packages no longer need to specify this variable in cfg.mk + +2009-05-14 Tom Prince (tiny change) + + rename.m4: fix typos that would make non-mingw cross-configure fail + * m4/rename.m4 (gl_FUNC_RENAME): Fix typos. + +2009-05-13 Eric Blake + + mmap-anon: avoid out-of-order autoconf expansion + * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct + SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b. + * modules/memchr-tests (Depends-on): Add extensions. + * modules/memchr2-tests (Depends-on): Add extensions. + * modules/memcmp-tests (Depends-on): Add extensions. + * modules/memmem-tests (Depends-on): Add extensions. + * modules/memrchr-tests (Depends-on): Add extensions. + +2009-05-13 Bruno Haible + + Make some tests ISO C 99 compliant. + * tests/zerosize-ptr.h: New file. + * tests/test-memchr.c: Include zerosize-ptr.h. + (main): Use a zero-size object pointer instead of NULL. + * tests/test-memchr2.c: Include zerosize-ptr.h. + (main): Use a zero-size object pointer instead of NULL. + * tests/test-memcmp.c: Include zerosize-ptr.h. + (main): Use a zero-size object pointer instead of NULL. + * tests/test-memmem.c: Include zerosize-ptr.h. + (main): Use a zero-size object pointer instead of NULL. + * tests/test-memrchr.c: Include zerosize-ptr.h. + (main): Use a zero-size object pointer instead of NULL. + * modules/memchr-tests (Files): Add tests/zerosize-ptr.h, + m4/mmap-anon.m4. + (Depends-on): Add getpagesize. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect. + * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h, + m4/mmap-anon.m4. + (Depends-on): Add getpagesize. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect. + * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h, + m4/mmap-anon.m4. + (Depends-on): Add getpagesize. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect. + * modules/memmem-tests (Files): Add tests/zerosize-ptr.h, + m4/mmap-anon.m4. + (Depends-on): Add getpagesize. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect. + * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h, + m4/mmap-anon.m4. + (Depends-on): Add getpagesize. + (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect. + +2009-05-12 Bruno Haible + + Tests for module 'alignof'. + * modules/alignof-tests: New file. + * tests/test-alignof.c: New file. + +2009-05-12 Bruno Haible + + Fix alignof macro. + * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX + vendor compilers that are always correct. + +2009-05-12 Bruno Haible + + Make the MAP_ANONYMOUS detection work on HP-UX 11. + * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but + not whether its fully works. + +2009-05-12 Bruno Haible + + * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments. + +2009-05-12 Jim Meyering + + * top/maint.mk: Adjust backslash alignment. + +2009-05-11 Simon Josefsson + + * top/maint.mk: Make $(srcdir)/build-aux configurable. + +2009-05-11 Eric Blake + + argp: avoid undefined behavior + * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype + macros. + +2009-05-08 Simon Josefsson + + * tests/test-vc-list-files-git.sh: Do git config of user.email and + user.name to prevent git commit from complaining. + +2009-05-10 Bruno Haible + + * gnulib-tool (func_import, func_create_testdir, copy-file): Change + sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that + it rewrites every file name only once. + Reported by Simon Josefsson. Helped by Ralf Wildenhues. + +2009-05-08 Bruno Haible + + * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression + instead of 'max'. + +2009-05-08 Simon Josefsson + + * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for + sockaddr_storage test. + +2009-05-07 Simon Josefsson + + * modules/sys_socket (Makefile.am): Substitute + HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof. + * m4/sys_socket_h.m4: Check for sockaddr_storage. + * lib/sys_socket.in.h (sockaddr_storage): Define when needed. + * tests/test-sys_socket.c: Check sockaddr_storage. + +2009-05-08 Bruno Haible + + New module 'alignof'. + * lib/alignof.h: New file. + * modules/alignof: New file. + +2009-05-04 David Bartley + Bruno Haible + + Fix test-file-has-acl on FreeBSD. + * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the + mask is implicitly added. + * tests/test-file-has-acl.c: Include . + (main): Terminate the test after 5 seconds. + * modules/acl-tests (configure.ac): Check for alarm function. + +2009-05-04 Bruno Haible + + Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26. + * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment. + * modules/errno (configure.ac): Drop AC_REQUIRE. + * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment. + * modules/multiarch (configure.ac): Drop AC_REQUIRE. + +2009-05-04 Simon Josefsson + + * modules/glob-tests: New module. + * tests/test-glob.c: Add. + +2009-05-04 Simon Josefsson + + * modules/fnmatch-tests: New module. + * tests/test-fnmatch.c: Add. + +2009-05-04 Eric Blake + + maint: make the new no-submodule-changes rule VPATH-safe + * top/maint.mk (no-submodule-changes): Don't assume a srcdir build. + +2009-05-04 David Bartley + Bruno Haible + + acl: Fix infinite loop on FreeBSD. + * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation + of return value from acl_get_entry. + * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]: + Likewise. + +2009-05-03 Bruno Haible + + * lib/acl-internal.h (acl_entries): Clarify return value. + * lib/acl_entries.c (acl_entries): Likewise. + +2009-05-04 David Bartley + + Bug fix in acl module. + * lib/set-mode-acl.c: Use correct struct with ACL_SETACL. + +2009-05-03 Bruno Haible + + Create gperf-generated file in the source dir, not in the build dir. + * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h, + iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree. + * modules/unicase/locale-language (unicase/locale-languages.h): + Likewise. + * modules/unicase/special-casing (unicase/special-casing-table.h): + Likewise. + * modules/unictype/property-byname (unictype/pr_byname.h): Likewise. + * modules/unictype/scripts (unictype/scripts_byname.h): Likewise. + * modules/uninorm/composition (uninorm/composition-table.h): Likewise. + Reported by Ralf Wildenhues. + +2009-05-03 Bruno Haible + + * modules/fnmatch (Description, configure.ac): Taken from + fnmatch-posix. + * modules/fnmatch-posix: Turn into a symbolic reference to the + 'fnmatch' module, and deprecate. + * doc/posix-functions/fnmatch.texi: Mention the fnmatch module. + +2009-05-03 Bruno Haible + + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF, + gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE. + Reported by Ralf Wildenhues. + +2009-05-04 Simon Josefsson + + * m4/fnmatch.m4: Fix fnmatch re-define. + +2009-04-27 David Bartley + + priv-set: new module and tests; adapt write-any-file + * lib/priv-set.c: New file. + * lib/priv-set.h: New file. + * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe. + * lib/write-any-file.c: Simplify by using priv-set module. + * m4/priv-set.m4: New file. + * modules/priv-set: New file. + * modules/unlinkdir: Add dependency on priv-set module. + * modules/write-any-file: Likewise. + + Tests for module 'priv-set'. + * modules/priv-set-tests: New file. + * tests/test-priv-set.c: New file. + +2009-05-03 Jim Meyering + Bruno Haible + + * lib/propername.c (proper_name_utf8): Ignore no-op translations; + use the converted UTF-8 variant of the name instead. + +2009-05-03 Jim Meyering + + tests: tighten some getdate tests + * tests/test-getdate.c (main): Tighten tests: require equality, + not just greater than. Set TZ envvar to UTC0. + +2009-05-03 Giuseppe Scrivano + + getdate: correctly interpret "next monday" when run on a Monday + * lib/getdate.y (get_date): Correct the calculation of tm_mday so + that e.g., "next tues" (when run on a tuesday) results in a date + that is one week in the future, and not today's date. + I.e., add a week when the wday is the same as the current one. + Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406, + and earlier by Martin Bernreuther and Jan Minář. + * tests/test-getdate.c (main): Check that "next DAY" is always in + the future and that "last DAY" is always in the past. + +2009-05-02 Jim Meyering + + build: ensure that a release build fails when a submodule is unclean + * top/maint.mk (no-submodule-changes): New rule. + (alpha beta major): Depend on it. + +2009-05-02 Bruno Haible + + Remove incompatibility between modules fnmatch-posix and fnmatch-gnu. + * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a + shell variable gl_fnmatch_required to detect which variant is + requested. + (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into + gl_FUNC_FNMATCH_POSIX. + * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't + exclude fnmatch-posix. + +2009-05-02 Bruno Haible + + Relicense mbsrtowcs and strnlen1 under LGPLv2+. + * modules/mbsrtowcs (License): Change to LGPLv2+. + * modules/strnlen1 (License): Likewise. + Reported by Simon Josefsson. + +2009-05-02 Bruno Haible + + * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of + "cross". + (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that + gnulib-tool was called with option --source-base=lib. + +2009-05-02 Ralf Wildenhues + + Use automake *-local hooks without commands, for extensibility. + * modules/localcharset (Makefile.am): Rename install-exec-local + rule to install-exec-localcharset, and make it a prerequisite of + install-exec-local. Likewise, rename the uninstall-local rule to + uninstall-localcharset, and make it a prerequisite of the former. + +2009-05-01 Bruno Haible + + * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1. + * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and + set REPLACE_WCSNRTOMBS if mbstate_t must be replaced. + * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS. + * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS. + * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4, + m4/locale-zh.m4, m4/codeset.m4. + + * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and + set REPLACE_WCSRTOMBS if mbstate_t must be replaced. + * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4, + m4/locale-zh.m4. + + * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set + REPLACE_WCRTOMB if mbstate_t must be replaced. + * modules/wcrtomb (Files): Add m4/mbrtowc.m4. + Reported by Jens Rehsack via Eric Blake. + +2009-05-01 Bruno Haible + + Avoid compiler warnings when redefining macros defined by . + * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext, + dngettext, dcngettext, textdomain, bindtextdomain, + bind_textdomain_codeset): Undefine before redefining. + +2009-04-30 Bruno Haible + + Fix bug introduced on 2009-04-25. + * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO, + gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros. + * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO + is defined. + * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO + is defined. + * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO + is defined. + Reported by Elbert_Pol . + +2009-04-28 Bruno Haible + + Comment tweaks. + * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is. + * lib/uninorm.h (u*_normxfrm): Fix description of return value. + * lib/unicase.h (u*_casexfrm): Likewise. + Reported by Paolo Bonzini. + +2009-04-28 Bruno Haible + + Fix a compilation error. + * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer. + * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise. + Reported by Jim Meyering. + +2009-04-27 Bruno Haible + + New module 'libunistring'. + * modules/libunistring: New file. + * m4/libunistring.m4: New file. + * MODULES.html.sh (Unicode string functions): Add it. + +2009-04-27 Eric Blake + + maint.mk: allow package-specific header to provide + * top/maint.mk (sc_require_config_h): New variable. + (sc_require_config_h, sc_require_config_h_first): Use it. + +2009-04-27 Simon Josefsson + + * top/maint.mk (sc_avoid_if_before_free): Except + useless-if-before-free script. + +2009-04-27 Eric Blake + + maintainer-makefile: depend on all required helper scripts + * modules/maintainer-makefile (Depends-on): Add vc-list-files and + useless-if-before-free. + * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local + version, rather than assuming gnulib checkout is available. + Reported by Simen Josefsson. + +2009-04-26 Bruno Haible + + Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32". + * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in + "../" or "..". + +2009-04-26 Bruno Haible + + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument. + * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using + AC_LIB_HAVE_LINKFLAGS. + +2009-04-26 Bruno Haible + + Simplify calling convention of u*_conv_from_encoding. + * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding, + u32_conv_from_encoding): Expect a resultbuf argument and return the + result directly as a pointer. + * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise. + * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise. + * lib/uniconv/u-strconv-from-enc.h (FUNC): Update. + * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update. + * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update. + * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks): + Update. + * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update. + * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update. + * lib/vasnprintf.c (VASNPRINTF): Update. + * tests/uniconv/test-u8-conv-from-enc.c (main): Update. + * tests/uniconv/test-u16-conv-from-enc.c (main): Update. + * tests/uniconv/test-u32-conv-from-enc.c (main): Update. + * NEWS: Mention the change. + +2009-04-26 Bruno Haible + + Simplify calling convention of u*_conv_to_encoding. + * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding, + u32_conv_to_encoding): Expect a resultbuf argument and return the + result directly as a pointer. + * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise. + * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while + freeing scaled_offsets if mem_iconveha failed. + * lib/unicase/u-casexfrm.h (FUNC): Update. + * lib/uninorm/u-normxfrm.h (FUNC): Update. + * lib/vasnprintf.c (VASNPRINTF): Update. + * tests/uniconv/test-u8-conv-to-enc.c (main): Update. + * tests/uniconv/test-u16-conv-to-enc.c (main): Update. + * tests/uniconv/test-u32-conv-to-enc.c (main): Update. + * NEWS: Mention the change. + +2009-04-26 Bruno Haible + + Avoid test failures on AIX and OSF/1. + * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling + malloc(0). + * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise. + * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks): + Likewise. + * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise. + * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise. + * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak. + * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0). + * doc/posix-functions/malloc.texi: Document the portability problem + related to malloc(0). + +2009-04-26 Bruno Haible + + * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix. + * modules/unistr/u16-cpy-alloc (Depends-on): Likewise. + * modules/unistr/u32-cpy-alloc (Depends-on): Likewise. + +2009-04-25 Bruno Haible + + Avoid link error when creating a namespace clean library. + * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define + as macro with arguments if already defined as an alias. + * lib/signbitf.c (gl_signbitf): Don't undefine. + * lib/signbitd.c (gl_signbitd): Don't undefine. + * lib/signbitl.c (gl_signbitl): Don't undefine. + +2009-04-25 Jim Meyering + + vc-list-files: fix another quoting bug + * build-aux/vc-list-files: Avoid sed backslash expansion + of pathological directory names. + +2009-04-25 Eric Blake + + vc-list-files: fix shell quoting error + * build-aux/vc-list-files: Protect against $ in $dir. Normalize + timestamp. + +2009-04-25 Jim Meyering + + vc-list-files: restore lost functionality with subdir argument + * build-aux/vc-list-files: When given a non-"." sub-directory + argument, substitute the $dir/ prefix back onto each resulting name. + Otherwise, coreutils' root_tests check would fail. + +2009-04-24 Eric Blake + + vc-list-files: ignore git symlinks + * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather + than ls-files, to ignore git symlinks. + + maint.mk: import improvements from m4 + * top/maint.mk (VC-tag): Use signing key from cfg.mk. + (move_if_change): Delete unused macro. + (news-date-check, vc-diff-check): Support VPATH builds. + (announcement): Likewise. Split --bootstrap-tools list... + (boostrap-tools): ...into separate list, which can be overridden + in cfg.mk. + (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than + requiring dependency on useless-if-before-free module. + (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module. + Support VPATH builds. + +2009-04-24 Jim Meyering + + maint.mk: remove coreutils-specific rules and variables + * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove. + (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove. + (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove. + + maint.mk: remove obsolete rule + * top/maint.mk (rel-check): Remove rule. + (WGET, WGETFLAGS): Remove now-unused variables. + +2009-04-24 Simon Josefsson + + * top/maint.mk (makefile-check): Renamed to sc_makefile_check for + consistency. + + * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use + '$(PATH_SEPARATOR)' instead of ':'. + +2009-04-24 Simon Josefsson + + * lib/getopt1.c (main): Use 'const' for static array. + +2009-04-24 Simon Josefsson + + * top/maint.mk: Sync with coreutils. + * NEWS: Explain incompatibilities. + +2009-04-22 Yoann Vandoorselaere + Bruno Haible + + Fix cross-compilation results. + * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty + statement, as third argument of AC_TRY_RUN. + * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK, + gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): + Likewise. + * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise. + * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL): + Likewise. + * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise. + * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3. + * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3. + +2009-04-20 Bruno Haible + + Avoid test failure on mingw. + * tests/uniwidth/test-uc_width2.sh: Convert newlines in output. + +2009-04-20 Bruno Haible + + Avoid compilation error on mingw. + * modules/localename-tests (Depends-on): Add locale. + +2009-04-19 Bruno Haible + + Support for building a shared library on Windows platforms. + * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL. + (main): Test the presence of UNINORM_NFC here. + * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL. + (main): Test the presence of UNINORM_NFD here. + * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL. + (main): Test the presence of UNINORM_NFKC here. + * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL. + (main): Test the presence of UNINORM_NFKD here. + +2009-04-19 Bruno Haible + + Avoid a compiler warning. + * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file): + Change type of variable 'sequence'. + +2009-04-19 Bruno Haible + + * modules/configmake (Makefile.am): When the contents of configmake.h + does not change, arrange to preserve its modification time. + +2009-04-17 Simon Josefsson + + * top/maint.mk (PO_DOMAIN): New variable, allows overriding of + gettext domain. + +2009-04-16 Jim Meyering + + useless-if-before-free: improve conversion code + * build-aux/useless-if-before-free: Adjust code-in-comment to match + "...!= 0" as well as "...!= NULL". emacs has one of the former. + +2009-04-14 Bruno Haible + + * modules/fcntl (Depends-on): Add extensions. + * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment. + +2009-04-12 Ben Pfaff + + Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux. + * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS. + +2009-03-20 Ben Pfaff + + Make rename replace existing destinations on Windows. + * m4/rename.m4: Add test for Mingw. + * lib/rename.c: Add rename replacement that uses MoveFileEx with + MOVEFILE_REPLACE_EXISTING to replace existing destination files. + * doc/posix-functions/rename.texi: Document. + +2009-04-10 Bruno Haible + + New include file "iconveh.h". + * lib/iconveh.h: New file, extracted from lib/striconveh.h. + * lib/striconveh.h: Include it. + (enum iconv_ilseq_handler): Remove definition. + * lib/striconveha.h: Include and iconveh.h instead of + striconveh.h. + * lib/striconveha.c: Include striconveh.h. + * lib/uniconv.h: Include iconveh.h instead of striconveh.h. + * modules/striconveh (Files): Add lib/iconveh.h. + * modules/uniconv/base (Files): Add lib/iconveh.h. Remove + lib/striconveh.h. + +2009-04-10 Bruno Haible + + * lib/uniconv.h: Update comment. + +2009-04-10 Bruno Haible + + * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function + always. + * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise. + * lib/unistr/u16-mbtouc-aux.c: Likewise. + * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise. + * lib/unistr/u8-mbtouc.c: Inside libunistring, include + "unistring-notinline.h", so that the function gets defined always. + * lib/unistr/u8-mbtouc-unsafe.c: Likewise. + * lib/unistr/u8-uctomb.c: Likewise. + * lib/unistr/u16-mbtouc.c: Likewise. + * lib/unistr/u16-mbtouc-unsafe.c: Likewise. + * lib/unistr/u16-uctomb.c: Likewise. + * lib/unistr/u32-mbtouc.c: Likewise. + * lib/unistr/u32-mbtouc-unsafe.c: Likewise. + * lib/unistr/u32-uctomb.c: Likewise. + +2009-04-10 Bruno Haible + + Mark 'utime' obsolete. + * modules/utime (Status, Notice): New sections. + Suggested by Jim Meyering. + + Fix cross-compile guess for utime test. + * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable + autoconf. + * doc/posix-functions/utime.texi: Give more precisions. + Reported by Jan . + +2009-04-09 Kamil Dudka + + filevercmp: correct today's change + * lib/filevercmp.c: Also handle coreutils' test inputs. + * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts. + + Fix regression in 'filevercmp' module. Thanks Sven Joachim + for reporting it. + * lib/filevercmp.c: Special handle for "", "." and "..". + * tests/test-filevercmp.c: Enlarge the set suite. + +2009-04-07 Jim Meyering + + useless-if-before-free: show how to remove braced useless free, too + * build-aux/useless-if-before-free: still only in a comment, though. + +2009-04-07 Reuben Thomas + + maint.mk: import changes to syntax-check macros from coreutils + * top/maint.mk (_prohibit_regexp, _header_without_use): Define. + Use them in the relevant macros. + +2009-04-06 Bruno Haible + + Fix unportable use of bit-fields. + * lib/unicase/special-casing.h (struct special_casing_rule): Change the + bit-field type from 'int' to 'signed int'. Otherwise Solaris cc, + AIX xlc, and OSF/1 cc interpret it as 'unsigned int'. + +2009-04-06 Bruno Haible + + Avoid test failures on AIX and OSF/1. + * tests/unicase/test-u8-casefold.c (check): Account for the possibility + that malloc(0) = NULL. + * tests/unicase/test-u8-tolower.c (check): Likewise. + * tests/unicase/test-u8-totitle.c (check): Likewise. + * tests/unicase/test-u8-toupper.c (check): Likewise. + * tests/unicase/test-u16-casefold.c (check): Likewise. + * tests/unicase/test-u16-tolower.c (check): Likewise. + * tests/unicase/test-u16-totitle.c (check): Likewise. + * tests/unicase/test-u16-toupper.c (check): Likewise. + * tests/unicase/test-u32-casefold.c (check): Likewise. + * tests/unicase/test-u32-tolower.c (check): Likewise. + * tests/unicase/test-u32-totitle.c (check): Likewise. + * tests/unicase/test-u32-toupper.c (check): Likewise. + * tests/uninorm/test-u8-nfc.c (check): Likewise. + * tests/uninorm/test-u8-nfd.c (check): Likewise. + * tests/uninorm/test-u8-nfkc.c (check): Likewise. + * tests/uninorm/test-u8-nfkd.c (check): Likewise. + * tests/uninorm/test-u16-nfc.c (check): Likewise. + * tests/uninorm/test-u16-nfd.c (check): Likewise. + * tests/uninorm/test-u16-nfkc.c (check): Likewise. + * tests/uninorm/test-u16-nfkd.c (check): Likewise. + * tests/uninorm/test-u32-nfc.c (check): Likewise. + * tests/uninorm/test-u32-nfd.c (check): Likewise. + * tests/uninorm/test-u32-nfkc.c (check): Likewise. + * tests/uninorm/test-u32-nfkd.c (check): Likewise. + +2009-04-05 Bruno Haible + + Work around an autoconf limitation. + * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by" + comment line if it would be longer than 3 KB. + +2009-04-05 Bruno Haible + + Avoid test failure with libiconv-1.13. + * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one + of the expected test results. + +2009-04-05 Bruno Haible + + * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to + noinst_LTLIBRARIES if the Makefile.am in the same directory specifies + that it should be installed. + +2009-04-05 Bruno Haible + + * gnulib-tool: New option --copy-file. + (func_usage): Document it. + (func_dest_tmpfilename): Moved out of func_import. + (func_add_file, func_update_file): New functions, extracted from + func_import. + (func_import): Update. + +2009-04-05 Karl Berry + + * README: prominently mention gnulib-tool. + Rearrange sections so getting the code is near the top. + +2009-04-05 Bruno Haible + + * lib/unicase.h: Mention u*_cmp2. + * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP. + * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp. + * lib/unicase/ulc-casecmp.c: Likewise. + * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp. + * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp. + * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove + unistr/u8-cmp. + * modules/unicase/ulc-casecmp (Depends-on): Likewise. + * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove + unistr/u16-cmp. + * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove + unistr/u32-cmp. + + * lib/uninorm.h: Mention u*_cmp2. + * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP. + * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp. + * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp. + * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp. + * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove + unistr/u8-cmp. + * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove + unistr/u16-cmp. + * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove + unistr/u32-cmp. + + New module 'unistr/u32-cmp2'. + * lib/unistr/u32-cmp2.c: New file. + * modules/unistr/u32-cmp2: New file. + + New module 'unistr/u16-cmp2'. + * lib/unistr/u16-cmp2.c: New file. + * modules/unistr/u16-cmp2: New file. + + New module 'unistr/u8-cmp2'. + * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations. + * lib/unistr/u8-cmp2.c: New file. + * lib/unistr/u-cmp2.h: New file. + * modules/unistr/u8-cmp2: New file. + +2009-04-05 Bruno Haible + + * lib/unictype.h (uc_property_is_valid): New macro. + * tests/unictype/test-pr_byname.c (main): Use it. + + * lib/unistr.h: Doc fixes. + * lib/uniconv.h: Doc fixes. + * lib/unictype.h: Doc fixes. + +2009-04-03 Paul Eggert + + Port coreutils 7.2 to Solaris 8. + + * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h. + * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl, + for Solaris 8. This is a bit of a hack, as it means it's the + caller's responsibility to add -lnsl if needed, but most likely it + won't be needed since only getaddrinfo uses this and getaddrinfo + isn't needed on Solaris 8. + + * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting + problem to Solaris 8 encountered with coreutils 7.2, which + resulted in a message "fnmatch.c:292: warning: passing argument 4 + of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit + at the suggestion of Bruno Haible, since fnmatch uses mbsinit. + +2009-04-03 Simon Josefsson + + * m4/ld-version-script.m4: Add FIXME comment. + +2009-04-02 Simon Josefsson + + * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing + SOVERSION variable. + +2009-04-02 Bruno Haible + + * Makefile (info, html, dvi, pdf): Combine the rules. + Suggested by Jim Meyering. + +2009-04-01 Bruno Haible + + * Makefile (info, html, dvi, pdf): New targets. + Reported by Reuben Thomas . + +2009-04-01 Bruno Haible + + * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool + can be put into PATH. + Reported by Reuben Thomas . Suggested by Karl Berry. + +2009-04-01 Bruno Haible + + * doc/lib-symbol-visibility.texi: Follow texinfo style conventions. + +2009-04-01 Bruno Haible + + Rename module 'visibility'. + * modules/lib-symbol-visibility: Renamed from modules/visibility. + * doc/lib-symbol-visibility.texi: Renamed from visibility.texi. + * doc/gnulib.texi: Update. + * MODULES.html.sh (Misc): Update. + * NEWS: Mention the change. + +2009-04-01 Simon Josefsson + + * modules/lib-msvc-compat: New module. Thanks to Bruno Haible + , Ralf Wildenhues , and + Eric Blake for review. + * MODULES.html.sh: Add lib-msvc-compat. + * doc/gnulib.texi: Link to new section. + * m4/ld-output-def.m4: New file. + * doc/ld-output-def.texi: New file. + +2009-04-01 Simon Josefsson + + Rename ld-version-script to lib-symbol-versions. Suggested by + Bruno Haible . + * modules/ld-version-script: Renamed to lib-symbol-versions. + * doc/ld-version-script.texi: Fix module name. + * MODULES.html.sh: Add lib-symbol-versions. + +2009-03-31 Simon Josefsson + + * modules/u64-tests: New file. + * tests/test-u64.c: New file. + +2009-03-04 Simon Josefsson + + * MODULES.html.sh: Mention u64. + * modules/u64: New module. + * modules/crypto/sha512: Depend on u64 module instead of providing + u64.h. + +2009-03-27 Eric Blake + + test-strerror: make debugging EAI_SYSTEM easier + * modules/getaddrinfo-tests (Depends-on): Add strerror. + * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if + failure was EAI_SYSTEM. + +2009-03-25 Bruno Haible + + Fix a problem with --enable-relocatable on Solaris 7. + * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed + since 2008-02-24. + +2009-03-25 Eric Blake + + test-sockets: avoid gcc warning + * tests/test-sockets.c (main): Silence compiler warning. + +2009-03-25 Paul Eggert + + New modules nproc, pthread, contributed by Glen Lenker. + + * MODULES.html.sh: Add pthread, nproc. + * lib/nproc.c: New file. + * lib/nproc.h: New file. + * lib/pthread.in.h: New file. + * m4/pthread.m4: New file. + * modules/nproc: New file. + * modules/pthread: New file. + +2009-03-24 Simon Josefsson + + * modules/unicase/locale-language-tests (test_locale_language_LDADD): + New variable. + +2009-03-24 Kamil Dudka + + filevercmp: handle simple~ and numbered.~3~ backup suffixes + * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes. + * tests/test-filevercmp.c: Add tests for backup suffixes. + +2009-03-24 Simon Josefsson + + * modules/stdlib (Depends-on): Add stdint, needed when defining + struct random_data on, for example, HP-UX 10.20. Reported by + Albert Chin . + +2009-03-24 Simon Josefsson + + * lib/readline.c (readline): Call fflush on stdout after printing + prompt. + +2009-03-20 Bruno Haible + + Remove dependency from 'close' module to -lws2_32 on native Windows. + * lib/close-hook.h: New file. + * lib/close-hook.c: New file. + * lib/close.c: Include close-hook.h. Don't include , + w32sock.h. + (_gl_close_fd_maybe_socket): Remove function. + (rpl_close): Invoke execute_all_close_hooks instead of + _gl_close_fd_maybe_socket. + * lib/sockets.c: Include close-hook.h, w32sock.h. + (close_fd_maybe_socket): New function, essentially from lib/close.c. + (close_sockets_hook): New variable. + (gl_sockets_startup): Register close_fd_maybe_socket as a hook. + (gl_sockets_cleanup): Unregister it. + * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro. + * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change. + * modules/close-hook: New file. + * modules/close (Files): Remove lib/w32sock.h. + (Depends-on): Add close-hook. + (Link): Remove section. + * modules/sockets (Files): Add lib/w32sock.h. + (Depends-on): Add close-hook. + * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR + invocation. + * NEWS: Mention that LIB_CLOSE is gone. + +2009-03-23 Eric Blake + + signal-tests: test previous patch + * tests/test-signal.c: New file. + * modules/signal-tests: Likewise. + + signal.h: always support 'volatile sig_atomic_t' + * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation. + (gl_SIGNAL_H_DEFAULTS): Add a default. + * modules/signal (Makefile.am): Substitute if needed. + * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that + users can blindly add volatile. + * doc/posix-headers/signal.texi (signal.h): Document it. + Reported by Matthew Woehlke. + +2009-03-23 Jim Meyering + + pathmax: PATH_MAX: use pathconf only when available + * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition + only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler. + * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf. + This avoids a link failure in a PSP cross-compilation environment + described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048 + + * lib/vasnprintf.c (divide): Fix typo in comment. + +2009-03-23 Ralf Wildenhues + + * gnulib-tool (func_filter_filelist): Fix comment. + +2009-03-20 Bruno Haible + + Make sockets.h self-contained. + * lib/sockets.c: Include sockets.h first. + * lib/sockets.h: Include before using the SOCKET type. + +2009-03-19 Eric Blake + + doc: mention more functions added in cygwin 1.7.0 + * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0 + addition. + * doc/posix-functions/log2f.texi: Likewise. + +2009-03-19 Jim Meyering + + fsusage: avoid syntax error due to statement-before-declaration + * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement + after all declarations. Reported by Matthew Woehlke in + http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231 + +2009-03-18 Eric Blake + + build-aux/compile: sync from automake + * build-aux/compile: New file, from automake. + * config/srclist.txt: Mention build-aux/compile. + +2009-03-17 Bruno Haible + + * lib/git-merge-changelog.c: Fix typo in comment. + Reported by Reuben Thomas . + +2009-03-17 Reuben Thomas + + * m4/regex.m4: update and improve help for + --without-included-regex. + +2009-03-17 Simon Josefsson + + * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid + failure on missing include files. + +2009-03-17 Eric Blake + + doc: mention more functions added in cygwin 1.7.0 + * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0 + addition. + * doc/posix-functions/fwscanf.texi: Likewise. + * doc/posix-functions/swprintf.texi: Likewise. + * doc/posix-functions/swscanf.texi: Likewise. + * doc/posix-functions/vfwprintf.texi: Likewise. + * doc/posix-functions/vfwscanf.texi: Likewise. + * doc/posix-functions/vswprintf.texi: Likewise. + * doc/posix-functions/vswscanf.texi: Likewise. + * doc/posix-functions/vwprintf.texi: Likewise. + * doc/posix-functions/vwscanf.texi: Likewise. + * doc/posix-functions/wcscasecmp.texi: Likewise. + * doc/posix-functions/wcsdup.texi: Likewise. + * doc/posix-functions/wcsftime.texi: Likewise. + * doc/posix-functions/wcsncasecmp.texi: Likewise. + * doc/posix-functions/wprintf.texi: Likewise. + * doc/posix-functions/wscanf.texi: Likewise. + * doc/glibc-functions/gethostbyname2.texi: Likewise. + +2009-03-14 Ralf Wildenhues + + maint.mk: really add $(AM_MAKEFLAGS) + * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)' + was inadvertently omitted in the last commit. + Spotted by Bruno Haible. + + maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make + * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE) + $(AM_MAKEFLAGS)' rather than plain `make'. + + gnulib-tool: execute $MAKE not make + * gnulib-tool: Default $MAKE to 'make'. + (func_create_testdir, func_create_megatestdir): Use $MAKE rather + than make. Initialize $MAKE in the do-autobuild script. + + gnulib-tool: use $MAKE not make in generated files + * gnulib-tool (func_create_megatestdir): Use $MAKE rather than + make, in generated files. Initialize $MAKE in the do-autobuild + script. + + * top/GNUmakefile (_have-git-version-gen): Fix typo. + + GNUmakefile: disable parallelism only for multiple, recursive targets + * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user + additions in the Makefile. + (AM_RECURSIVE_TARGETS): New macro, override only if not provided + by Automake. + (.NOTPARALLEL): Only disable parallel builds if multiple targets + are listed on the command line and at least one of them is + listed in $(ALL_RECURSIVE_TARGETS). + +2009-03-14 Bruno Haible + + * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace + utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe. + * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise. + * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace + utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe. + * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise. + * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with + unistr/u8-uctomb. + * modules/unistr/u8-strchr (Depends-on): Likewise. + * modules/unistr/u8-strrchr (Depends-on): Likewise. + * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with + unistr/u16-uctomb. + * modules/unistr/u16-strchr (Depends-on): Likewise. + * modules/unistr/u16-strrchr (Depends-on): Likewise. + +2009-03-12 Bruno Haible + + Work around select() bug on Interix 3.5. + * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1. + * lib/select.c (rpl_select): Add an implementation for Unix platforms. + * m4/select.m4: New file. + * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT. + * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT. + * modules/select (Files): Add m4/select.m4. + (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT. + * modules/nanosleep (Depends-on): Add select. + * modules/poll (Depends-on): Likewise. + * doc/posix-functions/select.texi: Mention the Interix bug. + Reported by Markus Duft . + + * lib/select.c: Renamed from lib/winsock-select.c. + * modules/select (Files): Add lib/select.c, remove + lib/winsock-select.c. + (configure.ac): Update. + +2009-03-12 Jim Meyering + + avoid gcc warnings about unused macro definitions + * lib/readtokens.c (STREQ): Remove unused definition. + * lib/xmalloc.c (SIZE_MAX): Likewise. + * lib/openat-die.c (N_): Likewise. + * lib/mountlist.c (SIZE_MAX): Remove definition. + Instead, include . + * lib/readutmp.c: Likewise. + * modules/readutmp (Depends-on): Add stdint. + * modules/mountlist (Depends-on): Add stdint. + * lib/userspec.c (ISDIGIT): Move definition into #if block where used. + +2009-03-10 Bruno Haible + + Tests for module 'mbmemcasecoll'. + * modules/mbmemcasecoll-tests: New file. + * tests/test-mbmemcasecoll1.sh: New file. + * tests/test-mbmemcasecoll2.sh: New file. + * tests/test-mbmemcasecoll3.sh: New file. + * tests/test-mbmemcasecoll.c: New file. + + New module 'mbmemcasecoll'. + * lib/mbmemcasecoll.h: New file. + * lib/mbmemcasecoll.c: New file. + * modules/mbmemcasecoll: New file. + + * tests/test-mbmemcasecmp.h: New file, extracted from + tests/test-mbmemcasecmp.c. + * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h. + (test_ascii, test_iso_8859_1, test_utf_8): Remove functions. + (main): Update. + * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h. + +2009-03-09 Bruno Haible + + Tests for module 'mbmemcasecmp'. + * modules/mbmemcasecmp-tests: New file. + * tests/test-mbmemcasecmp1.sh: New file. + * tests/test-mbmemcasecmp2.sh: New file. + * tests/test-mbmemcasecmp3.sh: New file. + * tests/test-mbmemcasecmp.c: New file. + + New module 'mbmemcasecmp'. + * lib/mbmemcasecmp.h: New file. + * lib/mbmemcasecmp.c: New file. + * modules/mbmemcasecmp: New file. + +2009-03-09 Bruno Haible + + Tests for module 'unicase/ulc-casecoll'. + * modules/unicase/ulc-casecoll-tests: New file. + * tests/unicase/test-ulc-casecoll1.sh: New file. + * tests/unicase/test-ulc-casecoll2.sh: New file. + * tests/unicase/test-ulc-casecoll.c: New file. + + New module 'unicase/ulc-casecoll'. + * lib/unicase.h (ulc_casecoll): New declaration. + * lib/unicase/ulc-casecoll.c: New file. + * modules/unicase/ulc-casecoll: New file. + + New module 'unicase/ulc-casexfrm'. + * lib/unicase.h (ulc_casexfrm): New declaration. + * lib/unicase/ulc-casexfrm.c: New file. + * modules/unicase/ulc-casexfrm: New file. + +2009-03-09 Bruno Haible + + Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC + invocations. + + * m4/mbscasecmp.m4: Remove file. + * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSCASECMP invocation. + + * m4/mbscasestr.m4: Remove file. + * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSCASESTR invocation. + + * m4/mbschr.m4: Remove file. + * modules/mbschr (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSCHR invocation. + + * m4/mbscspn.m4: Remove file. + * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSCSPN invocation. + + * m4/mbslen.m4: Remove file. + * modules/mbslen (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSLEN invocation. + + * m4/mbsncasecmp.m4: Remove file. + * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation. + + * m4/mbsnlen.m4: Remove file. + * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSNLEN invocation. + + * m4/mbspbrk.m4: Remove file. + * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSPBRK invocation. + + * m4/mbspcasecmp.m4: Remove file. + * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation. + + * m4/mbsrchr.m4: Remove file. + * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSRCHR invocation. + + * m4/mbssep.m4: Remove file. + * modules/mbssep (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSSEP invocation. + + * m4/mbsspn.m4: Remove file. + * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSSPN invocation. + + * m4/mbsstr.m4: Remove file. + * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSSTR invocation. + + * m4/mbstok_r.m4: Remove file. + * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4 + (configure.ac): Remove gl_FUNC_MBSTOK_R invocation. + + * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation. + + * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and + AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations. + + * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation. + +2009-03-08 Bruno Haible + + Tests for module 'unicase/ulc-casecmp'. + * modules/unicase/ulc-casecmp-tests: New file. + * tests/unicase/test-ulc-casecmp1.sh: New file. + * tests/unicase/test-ulc-casecmp2.sh: New file. + * tests/unicase/test-ulc-casecmp.c: New file. + + New module 'unicase/ulc-casecmp'. + * lib/unicase.h (ulc_casecmp): New declaration. + * lib/unicase/ulc-casecmp.c: New file. + * lib/unicase/u-casecmp.h (FUNC): Change argument types to + 'const SRC_UNIT *'. + * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT. + * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise. + * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise. + * modules/unicase/ulc-casecmp: New file. + + Tests for module 'unicase/u32-is-cased'. + * modules/unicase/u32-is-cased-tests: New file. + * tests/unicase/test-u32-is-cased.c: New file. + + Tests for module 'unicase/u16-is-cased'. + * modules/unicase/u16-is-cased-tests: New file. + * tests/unicase/test-u16-is-cased.c: New file. + + Tests for module 'unicase/u8-is-cased'. + * modules/unicase/u8-is-cased-tests: New file. + * tests/unicase/test-u8-is-cased.c: New file. + * tests/unicase/test-is-cased.h: New file. + + New module 'unicase/u32-is-cased'. + * lib/unicase/u32-is-cased.c: New file. + * modules/unicase/u32-is-cased: New file. + + New module 'unicase/u16-is-cased'. + * lib/unicase/u16-is-cased.c: New file. + * modules/unicase/u16-is-cased: New file. + + New module 'unicase/u8-is-cased'. + * lib/unicase/u8-is-cased.c: New file. + * lib/unicase/u-is-cased.h: New file. + * modules/unicase/u8-is-cased: New file. + + Tests for module 'unicase/u32-is-casefolded'. + * modules/unicase/u32-is-casefolded-tests: New file. + * tests/unicase/test-u32-is-casefolded.c: New file. + + Tests for module 'unicase/u16-is-casefolded'. + * modules/unicase/u16-is-casefolded-tests: New file. + * tests/unicase/test-u16-is-casefolded.c: New file. + + Tests for module 'unicase/u8-is-casefolded'. + * modules/unicase/u8-is-casefolded-tests: New file. + * tests/unicase/test-u8-is-casefolded.c: New file. + * tests/unicase/test-is-casefolded.h: New file. + + New module 'unicase/u32-is-casefolded'. + * lib/unicase/u32-is-casefolded.c: New file. + * modules/unicase/u32-is-casefolded: New file. + + New module 'unicase/u16-is-casefolded'. + * lib/unicase/u16-is-casefolded.c: New file. + * modules/unicase/u16-is-casefolded: New file. + + New module 'unicase/u8-is-casefolded'. + * lib/unicase/u8-is-casefolded.c: New file. + * modules/unicase/u8-is-casefolded: New file. + + Tests for module 'unicase/u32-is-titlecase'. + * modules/unicase/u32-is-titlecase-tests: New file. + * tests/unicase/test-u32-is-titlecase.c: New file. + + Tests for module 'unicase/u16-is-titlecase'. + * modules/unicase/u16-is-titlecase-tests: New file. + * tests/unicase/test-u16-is-titlecase.c: New file. + + Tests for module 'unicase/u8-is-titlecase'. + * modules/unicase/u8-is-titlecase-tests: New file. + * tests/unicase/test-u8-is-titlecase.c: New file. + * tests/unicase/test-is-titlecase.h: New file. + + New module 'unicase/u32-is-titlecase'. + * lib/unicase/u32-is-titlecase.c: New file. + * modules/unicase/u32-is-titlecase: New file. + + New module 'unicase/u16-is-titlecase'. + * lib/unicase/u16-is-titlecase.c: New file. + * modules/unicase/u16-is-titlecase: New file. + + New module 'unicase/u8-is-titlecase'. + * lib/unicase/u8-is-titlecase.c: New file. + * modules/unicase/u8-is-titlecase: New file. + + Tests for module 'unicase/u32-is-lowercase'. + * modules/unicase/u32-is-lowercase-tests: New file. + * tests/unicase/test-u32-is-lowercase.c: New file. + + Tests for module 'unicase/u16-is-lowercase'. + * modules/unicase/u16-is-lowercase-tests: New file. + * tests/unicase/test-u16-is-lowercase.c: New file. + + Tests for module 'unicase/u8-is-lowercase'. + * modules/unicase/u8-is-lowercase-tests: New file. + * tests/unicase/test-u8-is-lowercase.c: New file. + * tests/unicase/test-is-lowercase.h: New file. + + New module 'unicase/u32-is-lowercase'. + * lib/unicase/u32-is-lowercase.c: New file. + * modules/unicase/u32-is-lowercase: New file. + + New module 'unicase/u16-is-lowercase'. + * lib/unicase/u16-is-lowercase.c: New file. + * modules/unicase/u16-is-lowercase: New file. + + New module 'unicase/u8-is-lowercase'. + * lib/unicase/u8-is-lowercase.c: New file. + * modules/unicase/u8-is-lowercase: New file. + + Tests for module 'unicase/u32-is-uppercase'. + * modules/unicase/u32-is-uppercase-tests: New file. + * tests/unicase/test-u32-is-uppercase.c: New file. + + Tests for module 'unicase/u16-is-uppercase'. + * modules/unicase/u16-is-uppercase-tests: New file. + * tests/unicase/test-u16-is-uppercase.c: New file. + + Tests for module 'unicase/u8-is-uppercase'. + * modules/unicase/u8-is-uppercase-tests: New file. + * tests/unicase/test-u8-is-uppercase.c: New file. + * tests/unicase/test-is-uppercase.h: New file. + + New module 'unicase/u32-is-uppercase'. + * lib/unicase/u32-is-uppercase.c: New file. + * modules/unicase/u32-is-uppercase: New file. + + New module 'unicase/u16-is-uppercase'. + * lib/unicase/u16-is-uppercase.c: New file. + * modules/unicase/u16-is-uppercase: New file. + + New module 'unicase/u8-is-uppercase'. + * lib/unicase/u8-is-uppercase.c: New file. + * modules/unicase/u8-is-uppercase: New file. + + New module 'unicase/u32-is-invariant'. + * lib/unicase/u32-is-invariant.c: New file. + * modules/unicase/u32-is-invariant: New file. + + New module 'unicase/u16-is-invariant'. + * lib/unicase/u16-is-invariant.c: New file. + * modules/unicase/u16-is-invariant: New file. + + New module 'unicase/u8-is-invariant'. + * lib/unicase/u8-is-invariant.c: New file. + * lib/unicase/invariant.h: New file. + * lib/unicase/u-is-invariant.h: New file. + * modules/unicase/u8-is-invariant: New file. + + Tests for module 'unicase/u32-casecoll'. + * modules/unicase/u32-casecoll-tests: New file. + * tests/unicase/test-u32-casecoll.c: New file. + + Tests for module 'unicase/u16-casecoll'. + * modules/unicase/u16-casecoll-tests: New file. + * tests/unicase/test-u16-casecoll.c: New file. + + Tests for module 'unicase/u8-casecoll'. + * modules/unicase/u8-casecoll-tests: New file. + * tests/unicase/test-u8-casecoll.c: New file. + + New module 'unicase/u32-casecoll'. + * lib/unicase/u32-casecoll.c: New file. + * modules/unicase/u32-casecoll: New file. + + New module 'unicase/u16-casecoll'. + * lib/unicase/u16-casecoll.c: New file. + * modules/unicase/u16-casecoll: New file. + + New module 'unicase/u8-casecoll'. + * lib/unicase/u8-casecoll.c: New file. + * lib/unicase/u-casecoll.h: New file. + * modules/unicase/u8-casecoll: New file. + + New module 'unicase/u32-casexfrm'. + * lib/unicase/u32-casexfrm.c: New file. + * modules/unicase/u32-casexfrm: New file. + + New module 'unicase/u16-casexfrm'. + * lib/unicase/u16-casexfrm.c: New file. + * modules/unicase/u16-casexfrm: New file. + + New module 'unicase/u8-casexfrm'. + * lib/unicase/u8-casexfrm.c: New file. + * lib/unicase/u-casexfrm.h: New file. + * modules/unicase/u8-casexfrm: New file. + + Tests for module 'unicase/u32-casecmp'. + * modules/unicase/u32-casecmp-tests: New file. + * tests/unicase/test-u32-casecmp.c: New file. + + Tests for module 'unicase/u16-casecmp'. + * modules/unicase/u16-casecmp-tests: New file. + * tests/unicase/test-u16-casecmp.c: New file. + + Tests for module 'unicase/u8-casecmp'. + * modules/unicase/u8-casecmp-tests: New file. + * tests/unicase/test-u8-casecmp.c: New file. + * tests/unicase/test-casecmp.h: New file. + + New module 'unicase/u32-casecmp'. + * lib/unicase/u32-casecmp.c: New file. + * modules/unicase/u32-casecmp: New file. + + New module 'unicase/u16-casecmp'. + * lib/unicase/u16-casecmp.c: New file. + * modules/unicase/u16-casecmp: New file. + + New module 'unicase/u8-casecmp'. + * lib/unicase/u8-casecmp.c: New file. + * lib/unicase/u-casecmp.h: New file. + * modules/unicase/u8-casecmp: New file. + + Tests for module 'unicase/u32-casefold'. + * modules/unicase/u32-casefold-tests: New file. + * tests/unicase/test-u32-casefold.c: New file. + + Tests for module 'unicase/u16-casefold'. + * modules/unicase/u16-casefold-tests: New file. + * tests/unicase/test-u16-casefold.c: New file. + + Tests for module 'unicase/u8-casefold'. + * modules/unicase/u8-casefold-tests: New file. + * tests/unicase/test-u8-casefold.c: New file. + + New module 'unicase/u32-casefold'. + * lib/unicase/u32-casefold.c: New file. + * modules/unicase/u32-casefold: New file. + + New module 'unicase/u16-casefold'. + * lib/unicase/u16-casefold.c: New file. + * modules/unicase/u16-casefold: New file. + + New module 'unicase/u8-casefold'. + * lib/unicase/u8-casefold.c: New file. + * lib/unicase/u-casefold.h: New file. + * modules/unicase/u8-casefold: New file. + + New module 'unicase/tocasefold'. + * lib/unicase/casefold.h: New file. + * lib/unicase/tocasefold.c: New file. + * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c. + * modules/unicase/tocasefold: New file. + + Tests for module 'unicase/u32-totitle'. + * modules/unicase/u32-totitle-tests: New file. + * tests/unicase/test-u32-totitle.c: New file. + + Tests for module 'unicase/u16-totitle'. + * modules/unicase/u16-totitle-tests: New file. + * tests/unicase/test-u16-totitle.c: New file. + + Tests for module 'unicase/u8-totitle'. + * modules/unicase/u8-totitle-tests: New file. + * tests/unicase/test-u8-totitle.c: New file. + + New module 'unicase/u32-totitle'. + * lib/unicase/u32-totitle.c: New file. + * modules/unicase/u32-totitle: New file. + + New module 'unicase/u16-totitle'. + * lib/unicase/u16-totitle.c: New file. + * modules/unicase/u16-totitle: New file. + + New module 'unicase/u8-totitle'. + * lib/unicase/u8-totitle.c: New file. + * lib/unicase/u-totitle.h: New file. + * modules/unicase/u8-totitle: New file. + + Tests for module 'unicase/u32-tolower'. + * modules/unicase/u32-tolower-tests: New file. + * tests/unicase/test-u32-tolower.c: New file. + + Tests for module 'unicase/u16-tolower'. + * modules/unicase/u16-tolower-tests: New file. + * tests/unicase/test-u16-tolower.c: New file. + + Tests for module 'unicase/u8-tolower'. + * modules/unicase/u8-tolower-tests: New file. + * tests/unicase/test-u8-tolower.c: New file. + + New module 'unicase/u32-tolower'. + * lib/unicase/u32-tolower.c: New file. + * modules/unicase/u32-tolower: New file. + + New module 'unicase/u16-tolower'. + * lib/unicase/u16-tolower.c: New file. + * modules/unicase/u16-tolower: New file. + + New module 'unicase/u8-tolower'. + * lib/unicase/u8-tolower.c: New file. + * modules/unicase/u8-tolower: New file. + + Tests for module 'unicase/u32-toupper'. + * modules/unicase/u32-toupper-tests: New file. + * tests/unicase/test-u32-toupper.c: New file. + + Tests for module 'unicase/u16-toupper'. + * modules/unicase/u16-toupper-tests: New file. + * tests/unicase/test-u16-toupper.c: New file. + + Tests for module 'unicase/u8-toupper'. + * modules/unicase/u8-toupper-tests: New file. + * tests/unicase/test-u8-toupper.c: New file. + + New module 'unicase/u32-toupper'. + * lib/unicase/u32-toupper.c: New file. + * modules/unicase/u32-toupper: New file. + + New module 'unicase/u16-toupper'. + * lib/unicase/u16-toupper.c: New file. + * modules/unicase/u16-toupper: New file. + + New module 'unicase/u8-toupper'. + * lib/unicase/u8-toupper.c: New file. + * modules/unicase/u8-toupper: New file. + + New module 'unicase/u32-casemap'. + * lib/unicase/u32-casemap.c: New file. + * modules/unicase/u32-casemap: New file. + + New module 'unicase/u16-casemap'. + * lib/unicase/u16-casemap.c: New file. + * modules/unicase/u16-casemap: New file. + + New module 'unicase/u8-casemap'. + * lib/unicase/unicasemap.h: New file. + * lib/unicase/u8-casemap.c: New file. + * lib/unicase/u-casemap.h: New file. + * modules/unicase/u8-casemap: New file. + + New module 'unicase/special-casing'. + * lib/unicase/special-casing.h: New file. + * lib/unicase/special-casing.c: New file. + * lib/unicase/special-casing-table.gperf: New file, generated by + gen-uni-tables.c. + * modules/unicase/special-casing: New file. + + Tests for module 'unicase/locale-language'. + * modules/unicase/locale-language-tests: New file. + * tests/unicase/test-locale-language.sh: New file. + * tests/unicase/test-locale-language.c: New file. + + New module 'unicase/locale-language'. + * lib/unicase/locale-language.c: New file. + * lib/unicase/locale-languages.gperf: New file. + * modules/unicase/locale-language: New file. + + Generate more tables for case conversion and case folding. + * lib/gen-uni-tables.c (SCC_*): New enum items. + (struct special_casing_rule): New type. + (casing_rules, num_casing_rules, allocated_casing_rules): New + variables. + (add_casing_rule, fill_casing_rules): New functions. + (struct casefold_rule): New type. + (casefolding_rules, num_casefolding_rules, + allocated_casefolding_rules): New variables. + (fill_casefolding_rules): New function. + (unicode_casefold): New variable. + (to_casefold, redistribute_casefolding_rules, compare_casing_rules, + sort_casing_rules, output_casing_rules): New functions. + (main): Accept to more arguments: SpecialCasing.txt and + CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules, + redistribute_casefolding_rules, sort_casing_rules, output_casing_rules. + Output mapping for casefolding. + + * lib/unicase.h: Include stdbool.h, uninorm.h. + (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower, + u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument. + (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf + arguments. + (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf, + resultp arguments. + (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations. + (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf, + resultp arguments. + (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase, + u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase, + u32_is_titlecase, u8_is_casefolded, u16_is_casefolded, + u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New + declarations. + * modules/unicase/base (Depends-on): Add uninorm/base, stdbool. + +2009-03-08 Bruno Haible + + * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll, + u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'. + * lib/uninorm/u-normcmp.h (FUNC): Likewise. + * lib/uninorm/u-normcoll.h (FUNC): Likewise. + +2009-03-07 Bruno Haible + + Adjust u*_normcmp, u*_normcoll API. + * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll, + u16_normcoll, u32_normcoll): Change failure conventions. + * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in + errno and return -1. + * lib/uninorm/u-normcoll.h (FUNC): Likewise. + +2009-03-07 Bruno Haible + + Tests for module 'uninorm/u32-normcoll'. + * modules/uninorm/u32-normcoll-tests: New file. + * tests/uninorm/test-u32-normcoll.c: New file. + + Tests for module 'uninorm/u16-normcoll'. + * modules/uninorm/u16-normcoll-tests: New file. + * tests/uninorm/test-u16-normcoll.c: New file. + + Tests for module 'uninorm/u8-normcoll'. + * modules/uninorm/u8-normcoll-tests: New file. + * tests/uninorm/test-u8-normcoll.c: New file. + +2009-03-07 Bruno Haible + + * tests/uninorm/test-u32-normcmp.h: New file, extracted from + tests/uninorm/test-u32-normcmp.c. + * tests/uninorm/test-u32-normcmp.c: Include it. + (test_nonascii): New function, extracted from main. Add some more + tests. + (main): Invoke test_ascii and test_nonascii. + * modules/uninorm/u32-normcmp-tests (Files): Add + tests/uninorm/test-u32-normcmp.h. + (Depends-on): Remove uninorm/u32-normcmp. + + * tests/uninorm/test-u16-normcmp.h: New file, extracted from + tests/uninorm/test-u16-normcmp.c. + * tests/uninorm/test-u16-normcmp.c: Include it. + (test_nonascii): New function, extracted from main. Add some more + tests. + (main): Invoke test_ascii and test_nonascii. + * modules/uninorm/u16-normcmp-tests (Files): Add + tests/uninorm/test-u16-normcmp.h. + (Depends-on): Remove uninorm/u16-normcmp. + + * tests/uninorm/test-u8-normcmp.h: New file, extracted from + tests/uninorm/test-u8-normcmp.c. + * tests/uninorm/test-u8-normcmp.c: Include it. + (test_nonascii): New function, extracted from main. Add some more + tests. + (main): Invoke test_ascii and test_nonascii. + * modules/uninorm/u8-normcmp-tests (Files): Add + tests/uninorm/test-u8-normcmp.h. + (Depends-on): Remove uninorm/u8-normcmp. + +2009-03-07 Bruno Haible + + New module 'uninorm/u32-normcoll'. + * lib/uninorm/u32-normcoll.c: New file. + * modules/uninorm/u32-normcoll: New file. + + New module 'uninorm/u16-normcoll'. + * lib/uninorm/u16-normcoll.c: New file. + * modules/uninorm/u16-normcoll: New file. + + New module 'uninorm/u8-normcoll'. + * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New + declarations. + * lib/uninorm/u8-normcoll.c: New file. + * lib/uninorm/u-normcoll.h: New file. + * modules/uninorm/u8-normcoll: New file. + + New module 'uninorm/u32-normxfrm'. + * lib/uninorm/u32-normxfrm.c: New file. + * modules/uninorm/u32-normxfrm: New file. + + New module 'uninorm/u16-normxfrm'. + * lib/uninorm/u16-normxfrm.c: New file. + * modules/uninorm/u16-normxfrm: New file. + + New module 'uninorm/u8-normxfrm'. + * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New + declarations. + * lib/uninorm/u8-normxfrm.c: New file. + * lib/uninorm/u-normxfrm.h: New file. + * modules/uninorm/u8-normxfrm: New file. + +2009-03-07 Bruno Haible + + * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base. + * modules/uninorm/u16-normcmp (Depends-on): Likewise. + * modules/uninorm/u32-normcmp (Depends-on): Likewise. + +2009-03-07 Bruno Haible + + New module 'memxfrm'. + * lib/memxfrm.h: New file. + * lib/memxfrm.c: New file. + * modules/memxfrm: New file. + +2009-03-07 Bruno Haible + + New module 'memcmp2'. + * lib/memcmp2.h: New file. + * lib/memcmp2.c: New file. + * modules/memcmp2: New file. + +2009-03-07 Bruno Haible + + Tests for module 'uninorm/decomposing-form'. + * modules/uninorm/decomposing-form-tests: New file. + * tests/uninorm/test-decomposing-form.c: New file. + + New module 'uninorm/decomposing-form'. + * lib/uninorm.h (uninorm_decomposing_form): New declaration. + * lib/uninorm/normalize-internal.h (struct unicode_normalization_form): + Add 'decomposing_variant' field. + * lib/uninorm/decomposing-form.c: New file. + * lib/uninorm/nfc.c (uninorm_nfc): Update. + * lib/uninorm/nfd.c (uninorm_nfd): Update. + * lib/uninorm/nfkc.c (uninorm_nfkc): Update. + * lib/uninorm/nfkd.c (uninorm_nfkd): Update. + * modules/uninorm/decomposing-form: New file. + * modules/uninorm/nfc (Depends-on): Add uninorm/nfd. + * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd. + +2009-03-07 Bruno Haible + + * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small + strings. + +2009-03-06 Bruno Haible + + Tests for module 'uninorm/u32-normcmp'. + * tests/uninorm/test-u32-normcmp.c: New file. + * modules/uninorm/u32-normcmp-tests: New file. + + Tests for module 'uninorm/u16-normcmp'. + * tests/uninorm/test-u16-normcmp.c: New file. + * modules/uninorm/u16-normcmp-tests: New file. + + Tests for module 'uninorm/u8-normcmp'. + * tests/uninorm/test-u8-normcmp.c: New file. + * modules/uninorm/u8-normcmp-tests: New file. + + New module 'uninorm/u32-normcmp'. + * lib/uninorm/u32-normcmp.c: New file. + * modules/uninorm/u32-normcmp: New file. + + New module 'uninorm/u16-normcmp'. + * lib/uninorm/u16-normcmp.c: New file. + * modules/uninorm/u16-normcmp: New file. + + New module 'uninorm/u8-normcmp'. + * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New + declarations. + * lib/uninorm/u8-normcmp.c: New file. + * lib/uninorm/u-normcmp.h: New file. + * modules/uninorm/u8-normcmp: New file. + +2009-03-06 Bruno Haible + + * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning. + Reported by Eric Blake. + +2009-03-06 Eric Blake + Bruno Haible + + * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub. + * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED + condition. + (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false. + * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED + condition. + (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false. + +2009-03-06 Eric Blake + + * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe, + to avoid compiler warnings. + * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise. + +2009-03-05 Bruno Haible + + * tests/test-ftell.c (main): Disable test beyond end of file on + FreeMiNT. + Patch by Alan Hourihane . + +2009-03-05 Kamil Dudka + + * lib/filevercmp.c: Move hidden files up in ordering. + * tests/test-filevercmp.c: Add tests for hidden files. + +2009-03-04 Bruno Haible + + * modules/visibility (Makefile.am): Augment AM_CFLAGS. + * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of + AM_CFLAGS. + Reported by Simon Josefsson. + +2009-03-03 Bruno Haible + + * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro. + Reported by Simon Josefsson. + + * doc/ld-version-script.texi: Update node reference. + +2009-03-03 Bruno Haible + + * modules/visibility (License): Change to 'unlimited'. + Suggested by Simon Josefsson. + +2009-03-03 Jim Meyering + + unlinkdir: cannot_unlink_dir may modify process state + * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that + it's neither thread-safe nor appropriate for use in a library. + +2009-03-03 Eric Blake + + test-closein: silence test under Darwin + * tests/test-closein.sh: Ignore stderr from cat, since we don't + care if it dies from EPIPE or EBADF. + +2009-03-03 Bruno Haible + + * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi + earlier. + * doc/visibility.texi: Fix @node and @section. + +2009-03-03 Simon Josefsson + + * doc/gnulib.texi: Link to sections for ld version script and + visibility. + * doc/visibility.texi: Add @node and @section. + * modules/ld-version-script: New module. + * m4/ld-version-script.m4: New file. + * doc/ld-version-script.texi: New file. + +2009-03-02 David Lutterkort + + * lib/safe-alloc.h (__GNUC_PREREQ): New macro. + Reported by Tom G. Christensen . + +2009-03-02 Bruno Haible + + * doc/visibility.texi: Mention libtool's -export-symbols option. + +2009-03-02 Jim Meyering + + announce-gen: new option: --no-print-checksums + * build-aux/announce-gen (usage): Describe it. + (print_checksums): Print a newline here, not in the [*] footnote. + (main): Honor it. + +2009-03-01 Bruno Haible + + Use socklen_t in the native Windows replacements prototypes. + * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t + instead of 'int'. + * lib/getsockopt.c (rpl_getsockopt): Likewise. + * lib/setsockopt.c (rpl_setsockopt): Likewise. + * modules/getsockopt (Depends-on): Add socklen. + * modules/setsockopt (Depends-on): Add socklen. + +2009-03-01 Bruno Haible + + * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at + least 4.2. + +2009-03-01 Eric Blake + Bruno Haible + + * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on + error messages. + * lib/wait-process.c (wait_subprocess): Omit error message about + deadly signal sent to the child of termsigp != NULL. + +2009-03-01 Eric Blake + + * lib/wait-process.c (wait_subprocess): Remove unnecessary cast. + +2009-03-01 Bruno Haible + + Avoid a gcc warning. + * tests/test-sched.c (b): Make global. + Reported by Eric Blake. + +2009-01-19 Martin Lambers + + Provide POSIX semantics for socket timeout options on W32. + * lib/setsockopt.c: Convert struct timeval to milliseconds on W32. + * lib/getsockopt.c: Convert milliseconds to struct timeval on W32. + * modules/setsockopt: Depend on sys_time module for struct timeval. + * modules/getsockopt: Depend on sys_time module for struct timeval. + +2009-03-01 Simon Josefsson + + * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of + __USE_GNU, for consistency with netdb.in.h. + Reported by Alan Hourihane . + +2009-03-01 Bruno Haible + + More support for FreeMiNT. + * lib/fseeko.c (rpl_fseeko): Complete last commit. + Reported by Alan Hourihane . + +2009-03-01 Bruno Haible + + More support for FreeMiNT. + * lib/fpurge.c (fpurge): Correct last commit. + Reported by Alan Hourihane . + +2009-03-01 Ralf Wildenhues + + Fix unportable awk script in vc-list-files. + * build-aux/vc-list-files: In the replacement awk script, use + substr with a second argument of 1, not zero. + Report by Simon Josefsson. + +2009-02-28 Bruno Haible + + More support for FreeMiNT. + * lib/freading.c (freading) [__MINT__]: Use new macros that were added + to FreeMiNT today. + * lib/fwriting.c (fwriting): Likewise. + Based on patch by Alan Hourihane . + +2009-02-28 Bruno Haible + + * tests/test-freadseek.c (main): Disable test beyond end of file on + FreeMiNT. + * tests/test-ftello.c (main): Likewise. + Patch by Alan Hourihane . + +2009-02-28 Bruno Haible + + Add tentative support for FreeMiNT. + * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code. + * lib/fpurge.c (fpurge): Likewise. + * lib/freadable.c (freadable): Likewise. + * lib/freading.c (freading): Likewise. + * lib/freadptr.c (freadptr): Likewise. + * lib/freadseek.c (freadptrinc): Likewise. + * lib/fseeko.c (rpl_fseeko): Likewise. + * lib/fseterr.c (fseterr): Likewise. + * lib/fwritable.c (fwritable): Likewise. + * lib/fwriting.c (fwriting): Likewise. + * lib/freadahead.c (freadahead): Likewise, based on code by Alan + Hourihane. + Reported by Alan Hourihane . + +2009-02-28 Bruno Haible + + * lib/wait-process.h (wait_subprocess): Clarify restriction regarding + SIGCHLD. + Reported by Jim Meyering. + +2009-02-28 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests. + Mention the results of these tests on various platforms. + * doc/posix-functions/fprintf.texi: Mention platforms in canonical + order. + * doc/posix-functions/printf.texi: Likewise. + * doc/posix-functions/snprintf.texi: Likewise. + * doc/posix-functions/sprintf.texi: Likewise. + * doc/posix-functions/vfprintf.texi: Likewise. + * doc/posix-functions/vprintf.texi: Likewise. + * doc/posix-functions/vsnprintf.texi: Likewise. + * doc/posix-functions/vsprintf.texi: Likewise. + * doc/glibc-functions/obstack_printf.texi: Likewise. + * doc/glibc-functions/obstack_vprintf.texi: Likewise. + +2009-02-28 Bruno Haible + + * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17. + Reported by Loïc Minier . + +2009-02-27 Bruno Haible + + * gnulib-tool (func_import): Make the sed expression used to create the + sed script for updating the .gitignore file POSIX compliant. + Reported by Eric Blake. + +2009-02-27 Bruno Haible + + * gnulib-tool (sed): Don't alias as "sed --posix". + Reported by Eric Blake. + +2009-02-27 Bruno Haible + + Avoid test link errors. + * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable. + * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable. + * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable. + * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable. + Reported by Tom G. Christensen . + +2009-02-27 Bruno Haible + + Avoid spurious "(cached)" in configure output. + * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro. + * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL. + * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise. + * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise. + * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise. + * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise. + * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise. + * m4/stdarg.m4 (gl_STDARG_H): Likewise. + Reported by Eric Blake. + +2009-02-27 Eric Blake + + printf: fix regression in previous patch + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error. + +2009-02-27 Bruno Haible + + * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its + value. + * lib/stdint.in.h: Likewise. + Suggested by Eric Blake. Reported by Peter Bray . + +2009-02-27 Eric Blake + + doc: mention more functions added in cygwin 1.7.0 + * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0 + addition. + * doc/posix-functions/open_wmemstream.texi: Likewise. + * doc/posix-functions/wcsnlen.texi: Likewise. + * doc/posix-functions/wcsnrtombs.texi: Likewise. + * doc/posix-functions/wcstod.texi: Likewise. + * doc/posix-functions/wcstof.texi: Likewise. + * doc/posix-functions/wcstoimax.texi: Likewise. + * doc/posix-functions/wcstok.texi: Likewise. + * doc/posix-functions/wcstoumax.texi: Likewise. + + Detect bug in cygwin 1.5.x *printf on 1-character %ls. + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter. + * 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. + +2009-02-26 Eric Blake + + avoid gcc 3.4.3 bug on long double NaN on Irix 6.5 + * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid + compilation bug by using runtime conversion. + * m4/isfinite.m4 (gl_ISFINITE): Likewise. + * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise. + * modules/ceill-tests (Files): Use nan.h. + * modules/floorl-tests (Files): Likewise. + * modules/frexpl-tests (Files): Likewise. + * modules/isnanl-tests (Files): Likewise. + * modules/ldexpl-tests (Files): Likewise. + * modules/roundl-tests (Files): Likewise. + * modules/truncl-tests (Files): Likewise. + * tests/test-ceill.c (main): Use a working NaN. + * tests/test-floorl.c (main): Likewise. + * tests/test-frexpl.c (main): Likewise. + * tests/test-isnan.c (test_long_double): Likewise. + * tests/test-isnanl.h (main): Likewise. + * tests/test-ldexpl.h (main): Likewise. + * tests/test-roundl.h (main): Likewise. + * tests/test-truncl.h (main): Likewise. + See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html. + +2009-02-26 Eric Blake + Bruno Haible + + Work around a *printf bug with %ls on Solaris. + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a + precision is specified, sprintf stops converting the wide string + argument when the number of bytes that have been produced by this + conversion equals or exceeds the precision. + * 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. + +2009-02-26 Eric Blake + + stdlib: favor compiler check of random.h + * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed + to avoid an ObjC random.h installed by Swarm. + +2009-02-26 Bruno Haible + + Work around *printf bug with %g directive and 0.0 on HP-UX 10.20. + * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0. + Reported by Gary V. Vaughan . + +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 @@ -248,7 +2951,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.