Superficial improvements and comments.
[gnulib.git] / ChangeLog
index a8f5487..ee543a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,170 @@
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
+       comments.
+
+2008-04-25  Eric Blake  <ebb9@byu.net>
+
+       Use native fstatat on cygwin 1.7.0.
+       * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
+       first.
+
+2008-04-23  Eric Blake  <ebb9@byu.net>
+
+       Improve memchr2 performance.
+       * lib/memchr2.c (memchr2): Further optimize parallel detection of
+       NUL bytes.
+       * modules/memchr2 (Depends-on): Use intprops.h.
+
+2008-04-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
+       an inline function instead of a CPP macro.  Patch by Ben Pfaff
+       <blp@cs.stanford.edu>.
+
+2008-04-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/arpa_inet.in.h: New file.
+
+       * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
+       (Makefile.am): Sed in substitute header file.
+
+       * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
+       gl_ARPA_INET_MODULE_INDICATOR.  Use them.
+
+       * modules/inet_ntop (configure.ac): Use
+       gl_ARPA_INET_MODULE_INDICATOR.
+
+       * modules/inet_pton (configure.ac): Use
+       gl_ARPA_INET_MODULE_INDICATOR.
+
+2008-04-22  Jim Meyering  <meyering@redhat.com>
+
+       * modules/verify (License): Re-license as LGPLv2+.
+
+2008-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
+       parameter to void* as per POSIX standard (MinGW uses char*).
+
+2008-04-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
+       iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
+       Define to replacements if REPLACE_ISWCNTRL is 1.
+       * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
+       If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
+       * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
+       * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
+       what it fixes.
+       * doc/posix-functions/iswalpha.texi: Likewise.
+       * doc/posix-functions/iswblank.texi: Likewise.
+       * doc/posix-functions/iswcntrl.texi: Likewise.
+       * doc/posix-functions/iswdigit.texi: Likewise.
+       * doc/posix-functions/iswgraph.texi: Likewise.
+       * doc/posix-functions/iswlower.texi: Likewise.
+       * doc/posix-functions/iswprint.texi: Likewise.
+       * doc/posix-functions/iswpunct.texi: Likewise.
+       * doc/posix-functions/iswspace.texi: Likewise.
+       * doc/posix-functions/iswupper.texi: Likewise.
+       * doc/posix-functions/iswxdigit.texi: Likewise.
+       Reported by Alain Guibert.
+
+2008-04-21  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
+       Patch by Alain Guibert.
+
+2008-04-21  Bruno Haible  <bruno@clisp.org>
+
+       Fix test failures on mingw.
+       * tests/test-xstrtol.c (print_no_progname): New function.
+       (main): Install it in error_print_progname hook.
+       * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
+       * tests/test-xstrtoimax.sh: Likewise.
+       * tests/test-xstrtoumax.sh: Likewise.
+
+2008-04-21  Bruno Haible  <bruno@clisp.org>
+
+       Fix test failure on mingw.
+       * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
+
+2008-04-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
+       Actually assign a value.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
+       take 2.
+       * lib/canonicalize.c (canonicalize_file_name): Elide if the
+       'canonicalize-lgpl' module is also used.
+       * lib/canonicalize-lgpl.c: Undo last change.
+       * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mkdir.c (mkdir): Undefine after the includes, not right after
+       config.h. Provide _mkdir based fallback for mingw.
+       * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
+       if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
+       * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
+       gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
+       rather than defining mkdir in config.h.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
+       (gl_SYS_STAT_H_DEFAULTS): New macro.
+       (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
+       HAVE_IO_H any more.
+       * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
+       HAVE_DECL_MKDIR and HAVE_IO_H.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/isapipe.c: Port to native Windows platforms.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
+
+2008-04-21  Eric Blake  <ebb9@byu.net>
+
+       Work around preprocessors that don't handle UINTMAX_MAX.
+       * lib/memchr2.c (memchr2): Avoid embedded #if.
+       Reported by Alain Guibert, fix suggested by Bruno Haible.
+
+2008-04-21  Simon Josefsson  <simon@josefsson.org>
+
+       * doc/posix-functions/strftime.texi (strftime): Explain better
+       Windows incompatibility.  Suggested by Micah Cowan
+       <micah@cowan.name>.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
+       unistr/u8-mblen.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix test failure on platforms with non-GNU iconv.
+       * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
+       (U_TO_U8): Use it, rather than u16_to_u8.
+       * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
+       units at the end of the input string.
+       * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
+       when the resulting length is 0.
+       * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
+
+2008-04-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
+       works.
+       * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
+
 2008-04-20  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-tsearch.c (main): Don't use initstate if it is missing.
        (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
        Reported by Daniel Bergström <daniel@octocode.com>.
 
+2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
+           Bruno Haible  <bruno@clisp.org>
+
+       * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
+       function.
+       (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
+       New functions, mostly extracted from gl_locale_name_default.
+       (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
+
 2008-04-16  Eric Blake  <ebb9@byu.net>
 
        Adjust strtod detection to catch glibc 2.7 bug.