New module 'mbsrtowcs'.
[gnulib.git] / ChangeLog
index e7e0d68..6d9bbb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,302 @@
+2008-12-19  Bruno Haible  <bruno@clisp.org>
+
+       New module 'mbsrtowcs'.
+       * lib/wchar.in.h (mbsrtowcs): New declaration.
+       * lib/mbsrtowcs.c: New file.
+       * m4/mbsrtowcs.m4: New file.
+       * modules/mbsrtowcs: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
+       HAVE_MBSRTOWCS.
+       * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
+       HAVE_MBSRTOWCS.
+       * doc/posix-functions/mbsrtowcs.texi: Document the new module.
+
+2008-12-19  Bruno Haible  <bruno@clisp.org>
+
+       New module 'mbrlen'.
+       * lib/wchar.in.h (mbrlen): New declaration.
+       * lib/mbrlen.c: New file.
+       * m4/mbrlen.m4: New file.
+       * modules/mbrlen: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
+       HAVE_MBRLEN.
+       * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
+       HAVE_MBRLEN.
+       * doc/posix-functions/mbrlen.texi: Document the new module.
+
+2008-12-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbrtowc.c: Include verify.h. Verify an assumption.
+       * modules/mbrtowc (Depends-on): Add verify.
+       Suggested by Paul Eggert.
+
+2008-12-18  Bruno Haible  <bruno@clisp.org>
+
+       * modules/mbsinit-tests: New file.
+       * tests/test-mbsinit.sh: New file.
+       * tests/test-mbsinit.c: New file.
+
+2008-12-18  Bruno Haible  <bruno@clisp.org>
+
+       * modules/mbrtowc-tests: New file.
+       * tests/test-mbrtowc1.sh: New file.
+       * tests/test-mbrtowc2.sh: New file.
+       * tests/test-mbrtowc3.sh: New file.
+       * tests/test-mbrtowc4.sh: New file.
+       * tests/test-mbrtowc.c: New file.
+
+       New module 'mbrtowc'.
+       * lib/wchar.in.h (mbstate_t): Override when the system does not have
+       mbsinit and mbrtowc.
+       (mbrtowc): New declaration.
+       * lib/mbrtowc.c: New file.
+       * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
+       * modules/mbrtowc: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
+       HAVE_MBRTOWC.
+       * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
+       HAVE_MBRTOWC.
+       * doc/posix-functions/mbrtowc.texi: Document the new module.
+
+2008-12-18  Bruno Haible  <bruno@clisp.org>
+
+       New module 'wctob'.
+       * lib/wchar.in.h (wctob): New declaration.
+       * lib/wctob.c: New file.
+       * m4/wctob.m4: New file.
+       * modules/wctob: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
+       HAVE_WCTOB.
+       * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
+       * doc/posix-functions/wctob.texi: Document the new module.
+
+2008-12-18  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
+       * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
+
+2008-12-18  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
+       G. Christensen" <tgc@jupiterrise.com>.
+
+       * lib/flock.c: Need to include errno.h.  Reported by "Tom
+       G. Christensen" <tgc@jupiterrise.com>.
+
+       * lib/flock.c: Need to include string.h.  Reported by "Tom
+       G. Christensen" <tgc@jupiterrise.com> and Eric Blake
+       <ebb9@byu.net>.
+
+2008-12-18  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-ja.m4: New file, from GNU gettext.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
+       Suggested by Eric Blake.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbsinit.c: Include verify.h. Verify an assumption.
+       * modules/mbsinit (Depends-on): Add verify.
+       Suggested by Paul Eggert.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
+       * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
+       gl_FUNC_MBRTOWC.
+       * m4/mbiter.m4 (gl_MBITER): LIkewise.
+       * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
+       * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
+       * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
+       * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
+       * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
+       * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
+       * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
+       * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
+       * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
+       * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
+       * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
+       * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
+       * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
+       * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
+       * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
+       * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
+       * modules/trim (configure.ac): Likewise.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       * modules/btowc-tests: New file.
+       * tests/test-btowc1.sh: New file.
+       * tests/test-btowc2.sh: New file.
+       * tests/test-btowc.c: New file.
+
+       New module 'btowc'.
+       * lib/wchar.in.h (btowc): New declaration.
+       * lib/btowc.c: New file.
+       * m4/btowc.m4: New file.
+       * modules/btowc: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
+       HAVE_BTOWC.
+       * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
+       * doc/posix-functions/btowc.texi: Document the new module.
+
+2008-12-17  Bruno Haible  <bruno@clisp.org>
+
+       New module 'mbsinit'.
+       * lib/wchar.in.h (mbsinit): New declaration.
+       * lib/mbsinit.c: New file.
+       * m4/mbsinit.m4: New file.
+       * modules/mbsinit: New file.
+       * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
+       HAVE_MBSINIT.
+       * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
+       HAVE_MBSINIT.
+       * doc/posix-functions/mbsinit.texi: Document the new module.
+
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistd.in.h: Add comment.
+       * tests/test-environ.c: Don't include <stdlib.h>.
+
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * lib/parse-duration.h (parse_duration): Document return value
+       convention.
+       * lib/parse-duration.c: Include specification header first. Add
+       comments.
+       (_): Remove macro.
+       (parse_year_month_day, parse_hour_minute_second): Move side effects
+       outside of strchr call.
+       (parse_non_iso8601): Move side effects outside of isspace call.
+       (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
+       call.
+
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-parse-duration.sh: Produce no output when the test
+       succeeds.
+
+2008-12-16  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
+       expressions.
+
+2008-12-15  Bruno Haible  <bruno@clisp.org>
+
+       * doc/glibc-functions/fgetxattr.texi: Tweak wording.
+       * doc/glibc-functions/flistxattr.texi: Likewise.
+       * doc/glibc-functions/fopencookie.texi: Likewise.
+       * doc/glibc-functions/fremovexattr.texi: Likewise.
+       * doc/glibc-functions/fsetxattr.texi: Likewise.
+       * doc/glibc-functions/getxattr.texi: Likewise.
+       * doc/glibc-functions/lgetxattr.texi: Likewise.
+       * doc/glibc-functions/listxattr.texi: Likewise.
+       * doc/glibc-functions/llistxattr.texi: Likewise.
+       * doc/glibc-functions/lremovexattr.texi: Likewise.
+       * doc/glibc-functions/lsetxattr.texi: Likewise.
+       * doc/glibc-functions/removexattr.texi: Likewise.
+       * doc/glibc-functions/setxattr.texi: Likewise.
+       * doc/posix-functions/open_memstream.texi: Likewise.
+
+2008-12-15  Eric Blake  <ebb9@byu.net>
+
+       Update doc for cygwin 1.7.
+       * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
+       functions.
+       * doc/posix-functions/fchmodat.texi: Likewise.
+       * doc/posix-functions/fchownat.texi: Likewise.
+       * doc/posix-functions/fdopendir.texi: Likewise.
+       * doc/posix-functions/fmemopen.texi: Likewise.
+       * doc/posix-functions/freeaddrinfo.texi: Likewise.
+       * doc/posix-functions/fstatat.texi: Likewise.
+       * doc/posix-functions/futimens.texi: Likewise.
+       * doc/posix-functions/gai_strerror.texi: Likewise.
+       * doc/posix-functions/getaddrinfo.texi: Likewise.
+       * doc/posix-functions/getnameinfo.texi: Likewise.
+       * doc/posix-functions/if_freenameindex.texi: Likewise.
+       * doc/posix-functions/if_indextoname.texi: Likewise.
+       * doc/posix-functions/if_nameindex.texi: Likewise.
+       * doc/posix-functions/if_nametoindex.texi: Likewise.
+       * doc/posix-functions/insque.texi: Likewise.
+       * doc/posix-functions/linkat.texi: Likewise.
+       * doc/posix-functions/llrint.texi: Likewise.
+       * doc/posix-functions/llrintf.texi: Likewise.
+       * doc/posix-functions/llrintl.texi: Likewise.
+       * doc/posix-functions/lockf.texi: Likewise.
+       * doc/posix-functions/lrintl.texi: Likewise.
+       * doc/posix-functions/mkdirat.texi: Likewise.
+       * doc/posix-functions/mkfifoat.texi: Likewise.
+       * doc/posix-functions/mknodat.texi: Likewise.
+       * doc/posix-functions/mq_close.texi: Likewise.
+       * doc/posix-functions/mq_getattr.texi: Likewise.
+       * doc/posix-functions/mq_notify.texi: Likewise.
+       * doc/posix-functions/mq_open.texi: Likewise.
+       * doc/posix-functions/mq_receive.texi: Likewise.
+       * doc/posix-functions/mq_send.texi: Likewise.
+       * doc/posix-functions/mq_setattr.texi: Likewise.
+       * doc/posix-functions/mq_timedreceive.texi: Likewise.
+       * doc/posix-functions/mq_timedsend.texi: Likewise.
+       * doc/posix-functions/mq_unlink.texi: Likewise.
+       * doc/posix-functions/open_memstream.texi: Likewise.
+       * doc/posix-functions/openat.texi: Likewise.
+       * doc/posix-functions/posix_fadvise.texi: Likewise.
+       * doc/posix-functions/posix_fallocate.texi: Likewise.
+       * doc/posix-functions/posix_madvise.texi: Likewise.
+       * doc/posix-functions/posix_memalign.texi: Likewise.
+       * doc/posix-functions/posix_openpt.texi: Likewise.
+       * doc/posix-functions/readlinkat.texi: Likewise.
+       * doc/posix-functions/remque.texi: Likewise.
+       * doc/posix-functions/renameat.texi: Likewise.
+       * doc/posix-functions/rintl.texi: Likewise.
+       * doc/posix-functions/sem_unlink.texi: Likewise.
+       * doc/posix-functions/shm_open.texi: Likewise.
+       * doc/posix-functions/shm_unlink.texi: Likewise.
+       * doc/posix-functions/signgam.texi: Likewise.
+       * doc/posix-functions/sigset.texi: Likewise.
+       * doc/posix-functions/stpcpy.texi: Likewise.
+       * doc/posix-functions/stpncpy.texi: Likewise.
+       * doc/posix-functions/strerror.texi: Likewise.
+       * doc/posix-functions/strtod.texi: Likewise.
+       * doc/posix-functions/symlinkat.texi: Likewise.
+       * doc/posix-functions/unlinkat.texi: Likewise.
+       * doc/posix-functions/utimensat.texi: Likewise.
+       * doc/glibc-functions/bindresvport.texi: Likewise.
+       * doc/glibc-functions/dn_expand.texi: Likewise.
+       * doc/glibc-functions/exp10.texi: Likewise.
+       * doc/glibc-functions/exp10f.texi: Likewise.
+       * doc/glibc-functions/fgetxattr.texi: Likewise.
+       * doc/glibc-functions/flistxattr.texi: Likewise.
+       * doc/glibc-functions/fopencookie.texi: Likewise.
+       * doc/glibc-functions/freeifaddrs.texi: Likewise.
+       * doc/glibc-functions/fremovexattr.texi: Likewise.
+       * doc/glibc-functions/fsetxattr.texi: Likewise.
+       * doc/glibc-functions/getifaddrs.texi: Likewise.
+       * doc/glibc-functions/getxattr.texi: Likewise.
+       * doc/glibc-functions/lgetxattr.texi: Likewise.
+       * doc/glibc-functions/listxattr.texi: Likewise.
+       * doc/glibc-functions/llistxattr.texi: Likewise.
+       * doc/glibc-functions/lremovexattr.texi: Likewise.
+       * doc/glibc-functions/lsetxattr.texi: Likewise.
+       * doc/glibc-functions/pow10.texi: Likewise.
+       * doc/glibc-functions/pow10f.texi: Likewise.
+       * doc/glibc-functions/rcmd_af.texi: Likewise.
+       * doc/glibc-functions/removexattr.texi: Likewise.
+       * doc/glibc-functions/res_init.texi: Likewise.
+       * doc/glibc-functions/res_mkquery.texi: Likewise.
+       * doc/glibc-functions/res_query.texi: Likewise.
+       * doc/glibc-functions/res_querydomain.texi: Likewise.
+       * doc/glibc-functions/res_send.texi: Likewise.
+       * doc/glibc-functions/rresvport_af.texi: Likewise.
+       * doc/glibc-functions/setxattr.texi: Likewise.
+       * doc/glibc-functions/strcasestr.texi: Likewise.
+
 2008-12-15  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation error on OSF/1 4.0.
        m4/strerror.m4.
 
 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * modules/unilbrk/tables (Depends-on): Add unilbrk/base.