regcomp.c: make non-_LIBC implementation of build_range_exp consistent
[gnulib.git] / ChangeLog
index 9691cf7..56b0987 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,139 @@
+2010-03-19  Jim Meyering  <meyering@redhat.com>
+
+       regcomp.c: make non-_LIBC implementation of build_range_exp consistent
+       The _LIBC implementation of build_range_exp correctly honors the
+       RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
+       However, the non-_LIBC implementation would ignore that syntax-bit
+       flag and return REG_ERANGE unconditionally.
+       This change makes it honor that flag.
+       * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
+       Make two pointer parameters "const".
+       Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
+       (parse_bracket_exp): Update caller.
+
+       regex.m4: correct the reversed range endpoint ([b-a]) test
+       * m4/regex.m4: When requiring that [b-a] evoke failure,
+       use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
+       test pass once again for x86-based systems.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       scandir: Fix link error on Solaris 8.
+       * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
+       macros.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       getusershell: Fix documentation.
+       * doc/glibc-functions/endusershell.texi: Refer to the getusershell
+       module.
+       * doc/glibc-functions/setusershell.texi: Likewise.
+
+       getusershell: Provide declaration, missing on Solaris 9.
+       * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
+       also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
+       * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
+       check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+       HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
+       * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
+       HAVE_GETUSERSHELL.
+       * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       wctype: Provide iswblank function.
+       * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
+       exists and is fine.
+       * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
+       * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
+       * tests/test-wctype.c (main): Re-enable the iswblank tests.
+       * doc/posix-functions/iswblank.texi: Update.
+
+2010-03-19  Bruno Haible  <bruno@clisp.org>
+
+       Tests of module 'pty' in C++ mode.
+       * modules/pty-tests: New file.
+       * tests/test-pty-c++.cc: New file.
+       * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
+
+2010-03-19  Eric Blake  <eblake@redhat.com>
+
+       logb: fix documentation
+       * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
+       1.5 declaration bug.
+
+       forkpty, openpty: prefer glibc's const-safe prototype
+       * lib/forkpty.c (rpl_forkpty): New file.
+       * lib/openpty.c (rpl_openpty): Likewise.
+       * modules/forkpty (Files): Distribute it.
+       * modules/openpty (Files): Likewise.
+       * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
+       check...
+       * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
+       replacement for for non-const BSD signature.
+       * modules/pty (Makefile.am): Substitute witnesses.
+       * lib/pty.in.h (forkpty, openpty): Declare replacements.
+       * tests/test-forkpty.c: Update signature check.
+       * tests/test-openpty.c: Likewise.
+       * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
+       * doc/glibc-functions/openpty.texi (openpty): Likewise.
+
+       forkpty, openpty: split functions into new modules
+       * modules/pty (Makefile.am): Substitute new witnesses.
+       (Libraries): Move library detection...
+       * modules/forkpty: ...into new module.
+       * modules/openpty: Another new module.
+       * modules/pty-tests: Rename and split...
+       * modules/forkpty-tests: ...to this...
+       * modules/openpty-tests: ...and this.
+       * tests/test-pty.c: Rename and split...
+       * tests/test-forkpty.c: ...to this...
+       * tests/test-openpty.c: ...and this.
+       * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
+       (gl_PTY): Split library searching...
+       * m4/pty.m4 (gl_PTY_LIB): ...into new file.
+       (gl_FORKPTY, gl_OPENPTY): New macros.
+       * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
+       * NEWS: Mention the split.
+       * MODULES.html.sh (Misc): Document the modules.
+       * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
+       * doc/glibc-functions/openpty.texi (openpty): Likewise.
+
+       pty: improve replacement header
+       * lib/pty.in.h: New file.
+       * modules/pty (Files): Ship it.
+       (Makefile.am): Always build replacement.
+       * m4/pty.m4: Rename...
+       * m4/pty_h.m4: ...to this.
+       (gl_PTY): Modernize setting of witness macros; update check of
+       forkpty to take proper advantage of cache.
+       (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
+
+       getopt: avoid compiler warning
+       * lib/getopt.c (attribute_hidden): Remove unused macro.
+
+2010-03-18  Bruno Haible  <bruno@clisp.org>
+
+       Fix link errors on Solaris 8.
+       * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
+       * modules/search-tests (test_search_c___LDADD): Likewise.
+       * modules/signal-tests (test_signal_c___LDADD): Likewise.
+       * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
+       * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
+       * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
+       * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
+       * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
+       * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
+
+2010-03-18  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2010-03-14.
+       * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
+       (gl_SPAWN_H): Require it.
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
+       Reported by Simon Josefsson.
+
 2010-03-18  Bruno Haible  <bruno@clisp.org>
 
        Fix typo introduced on 2009-12-31.