Avoid compilation error on mingw.
[gnulib.git] / ChangeLog
index 81f963d..e7a2459 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,439 @@
+2009-04-20  Bruno Haible  <bruno@clisp.org>
+
+       Avoid compilation error on mingw.
+       * modules/localename-tests (Depends-on): Add locale.
+
+2009-04-19  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       * modules/configmake (Makefile.am): When the contents of configmake.h
+       does not change, arrange to preserve its modification time.
+
+2009-04-17  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
+       gettext domain.
+
+2009-04-16  Jim Meyering  <meyering@redhat.com>
+
+       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  <bruno@clisp.org>
+
+       * modules/fcntl (Depends-on): Add extensions.
+       * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
+
+2009-04-12  Ben Pfaff  <blp@gnu.org>
+
+       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  <blp@gnu.org>
+
+       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  <bruno@clisp.org>
+
+       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 <stddef.h> 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  <bruno@clisp.org>
+
+       * lib/uniconv.h: Update comment.
+
+2009-04-10  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
+
+       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 <ipif@ymail.com>.
+
+2009-04-09  Kamil Dudka  <kdudka@redhat.com>
+
+       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  <meyering@redhat.com>
+
+       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  <rrt@sc3d.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
+
+       * 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  <karl@gnu.org>
+
+       * README: prominently mention gnulib-tool.
+       Rearrange sections so getting the code is near the top.
+
+2009-04-05  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
+
+       * 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  <eggert@cs.ucla.edu>
+
+       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  <simon@josefsson.org>
+
+       * m4/ld-version-script.m4: Add FIXME comment.
+
+2009-04-02  Simon Josefsson  <simon@josefsson.org>
+
+       * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
+       SOVERSION variable.
+
+2009-04-02  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile (info, html, dvi, pdf): Combine the rules.
+       Suggested by Jim Meyering.
+
+2009-04-01  Bruno Haible  <bruno@clisp.org>
+
+       * Makefile (info, html, dvi, pdf): New targets.
+       Reported by Reuben Thomas <rrt@sc3d.org>.
+
+2009-04-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
+       can be put into PATH.
+       Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
+
+2009-04-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
+
+2009-04-01  Bruno Haible  <bruno@clisp.org>
+
+       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  <simon@josefsson.org>
+
+       * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
+       <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
+       Eric Blake <ebb9@byu.net> 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  <simon@josefsson.org>
+
+       Rename ld-version-script to lib-symbol-versions.  Suggested by
+       Bruno Haible <bruno@clisp.org>.
+       * 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  <simon@josefsson.org>
+
+       * modules/u64-tests: New file.
+       * tests/test-u64.c: New file.
+
+2009-03-04  Simon Josefsson  <simon@josefsson.org>
+
+       * 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  <ebb9@byu.net>
+
+       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  <bruno@clisp.org>
+
+       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  <ebb9@byu.net>
+
+       test-sockets: avoid gcc warning
+       * tests/test-sockets.c (main): Silence compiler warning.
+
+2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <simon@josefsson.org>
+
+       * modules/unicase/locale-language-tests (test_locale_language_LDADD):
+       New variable.
+
+2009-03-24  Kamil Dudka  <kdudka@redhat.com>
+
+       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  <simon@josefsson.org>
+
+       * modules/stdlib (Depends-on): Add stdint, needed when defining
+       struct random_data on, for example, HP-UX 10.20.  Reported by
+       Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
+
+2009-03-24  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/readline.c (readline): Call fflush on stdout after printing
+       prompt.
+
+2009-03-20  Bruno Haible  <bruno@clisp.org>
+
+       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 <sys/socket.h>,
+       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  <ebb9@byu.net>
+
+       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  <meyering@redhat.com>
+
+       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  <Ralf.Wildenhues@gmx.de>
 
        * gnulib-tool (func_filter_filelist): Fix comment.