X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=7029e013a6b349f831a08200d5293a951822835e;hb=06758294115f10dd93055a531113c24f8930f992;hp=a69a14cc6576b65c976e39963e180f1329bf79fd;hpb=0cfc3b87f0c3be63db1075ed465443c4b3c4cec2;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index a69a14cc6..42257ee2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,931 @@ +2010-01-18 Jim Meyering + + readtokens: do not leak internal token_lengths buffer + * lib/readtokens.c (readtokens): Free the local, lengths, + when the supplied "token_lengths" parameter is NULL. + +2010-01-17 Ralf Wildenhues + + Fix a couple of missing LIBTHREAD link failures on AIX. + * modules/git-merge-changelog (git_merge_changelog_LDADD): Add + $(LIBTHREAD). + * modules/strsignal-tests (test_strsignal_LDADD): Likewise. + + Link test-poll against INET_PTON_LIB. + * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB), + for inet_pton on Solaris 10. + +2010-01-17 Bruno Haible + + unistdio/*-sprintf: Fix typo in module description. + * modules/unistdio/u8-sprintf (Depends-on): Fix typo. + * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise. + * modules/unistdio/u16-sprintf (Depends-on): Likewise. + * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise. + * modules/unistdio/u32-sprintf (Depends-on): Likewise. + * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise. + * modules/unistdio/ulc-sprintf (Depends-on): Likewise. + Reported by Ralf Wildenhues . + +2010-01-17 Ralf Wildenhues + + gnulib-tool: fix filelist for AIX, HP-UX ksh. + * gnulib-tool (func_filter_filelist): Do not quote possibly-empty + variables in shell case patterns, for AIX and HP-UX ksh. + + Split large sed scripts, for HP-UX sed. + * modules/stdio: Split sed scripts around 50 sed commands, + to avoid HP-UX limit of 99 commands, in the near future. + * modules/string: Likewise. + * modules/unistd: Likewise. + + gnulib-tool: avoid writing in the current directory. + * gnulib-tool (func_emit_lib_Makefile_am) + (func_emit_tests_Makefile_am): Put temporary files in $tmp, + not in the current directory, so concurrent gnulib-tool + instances do not interfere. + +2010-01-16 Jim Meyering + + doc: update users.txt + * users.txt: Add grep. + (diffutils, gzip): Update URLs. + +2010-01-12 Bruno Haible + + posix_spawn: Avoid test failure on Cygwin. + * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky + characters. + Reported by Simon Josefsson. + +2010-01-12 Bruno Haible + + * tests/test-cond.c (main): When skipping the test, show the reason. + +2010-01-12 Simon Josefsson + + * lib/striconv.c (str_cd_iconv): Avoid if before free. + +2010-01-12 Simon Josefsson + + * top/maint.mk (VC_LIST_EXCEPT): Filter list through + VC_LIST_ALWAYS_EXCLUDE_REGEX. + +2010-01-12 Eric Blake + + build: guarantee AS_VAR_IF + * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name. + (gl_AS_VAR_IF): Move... + * m4/gnulib-common.m4 (AS_VAR_IF): ...here. + Reported by Simon Josefsson. + +2010-01-12 Simon Josefsson + + * lib/stdio.in.h: Fix typo. + +2010-01-12 Simon Josefsson + + * m4/gc.m4: Check if linking to libgcrypt also needs linking to + libgpg-error. + +2010-01-12 Simon Josefsson + + * tests/test-xalloc-die.sh: Use $EXEEXT. + +2010-01-12 Simon Josefsson + Bruno Haible + + getlogin, getlogin_r: Avoid test failure. + * tests/test-getlogin.c: Include . + (main): Skip the test when the function fails because stdin is not a + tty. + * tests/test-getlogin_r.c: Include . + (main): Skip the test when the function fails because stdin is not a + tty. + +2010-01-11 Eric Blake + + tests: avoid more large file warnings + * tests/test-fflush.c: Avoid warning about ftell use. + * tests/test-fseek.c: Avoid warning about fseek use. + +2010-01-10 Bruno Haible + + nproc: Work better on Linux when /proc and /sys are not mounted. + * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask () + as lower bound when, on glibc/Linux systems, + sysconf (_SC_NPROCESSORS_CONF) returns 1. + Suggested by Pádraig Brady . + Reported by Dmitry V. Levin . + + nproc: Refactor. + * lib/nproc.c (num_processors_via_affinity_mask): New function, + extracted from num_processors. + (num_processors): Call it. + +2010-01-11 Jim Meyering + + utimecmp: avoid new warning from upcoming gcc-4.5.0 + * lib/utimecmp.c (BILLION): Define using #define rather than an + anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare. + +2010-01-11 Eric Blake + + math: add portability warnings for classification macros + * modules/math (Depends-on): Add warn-on-use. + (Makefile.am): Provide new substitutions. + * m4/math_h.m4 (gl_MATH_H): Require inline. + * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL) + (_GL_WARN_REAL_FLOATING_IMPL): New helper macros. + (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to + implement warnings. + + unistd: warn on use of environ without module + * modules/unistd (Depends-on): Add warn-on-use. + (Makefile.am): Provide new substitutions. + * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ. + * lib/unistd.in.h (environ): Wrap with a warning helper function. + + stdio: warn on suspicious uses + * modules/stdio (Depends-on): Add warn-on-use. + (Makefile.am): Provide new substitutions. + * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and + fseeko. + * lib/stdio.in.h (gets): Always warn on use. + (fseek, ftell): Adjust when warnings are issued, and honor + _GL_NO_LARGE_FILES as a way to silence the warning. + * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch + any warning about large file offsets. + * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise. + * tests/test-freading.c [!GNULIB_FSEEK]: Likewise. + * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise. + * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise. + * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise. + * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise. + * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise. + * tests/test-getopt.c [!GNULIB_FTELL]: Likewise. + + warn-on-use: new module + * modules/warn-on-use: New file. + * build-aux/warn-on-use.h: Likewise. + * m4/warn-on-use.m4: Likewise. + * MODULES.html.sh (Support for building): Mention it. + +2010-01-10 Bruno Haible + + Tests for module 'unistr/u32-strdup'. + * modules/unistr/u32-strdup-tests: New file. + * tests/unistr/test-u32-strdup.c: New file. + + Tests for module 'unistr/u16-strdup'. + * modules/unistr/u16-strdup-tests: New file. + * tests/unistr/test-u16-strdup.c: New file. + + Tests for module 'unistr/u8-strdup'. + * modules/unistr/u8-strdup-tests: New file. + * tests/unistr/test-u8-strdup.c: New file. + * tests/unistr/test-strdup.h: New file. + + Tests for module 'unistr/u32-strncmp'. + * modules/unistr/u32-strncmp-tests: New file. + * tests/unistr/test-u32-strncmp.c: New file. + + Tests for module 'unistr/u16-strncmp'. + * modules/unistr/u16-strncmp-tests: New file. + * tests/unistr/test-u16-strncmp.c: New file. + + Tests for module 'unistr/u8-strncmp'. + * modules/unistr/u8-strncmp-tests: New file. + * tests/unistr/test-u8-strncmp.c: New file. + * tests/unistr/test-strncmp.h: New file. + + Tests for module 'unistr/u32-strcoll'. + * modules/unistr/u32-strcoll-tests: New file. + * tests/unistr/test-u32-strcoll.c: New file. + + Tests for module 'unistr/u16-strcoll'. + * modules/unistr/u16-strcoll-tests: New file. + * tests/unistr/test-u16-strcoll.c: New file. + + Tests for module 'unistr/u8-strcoll'. + * modules/unistr/u8-strcoll-tests: New file. + * tests/unistr/test-u8-strcoll.c: New file. + + Tests for module 'unistr/u32-strcmp'. + * modules/unistr/u32-strcmp-tests: New file. + * tests/unistr/test-u32-strcmp.c: New file. + * tests/unistr/test-u32-strcmp.h: New file. + + Tests for module 'unistr/u16-strcmp'. + * modules/unistr/u16-strcmp-tests: New file. + * tests/unistr/test-u16-strcmp.c: New file. + * tests/unistr/test-u16-strcmp.h: New file. + + Tests for module 'unistr/u8-strcmp'. + * modules/unistr/u8-strcmp-tests: New file. + * tests/unistr/test-u8-strcmp.c: New file. + * tests/unistr/test-u8-strcmp.h: New file. + * tests/unistr/test-strcmp.h: New file. + + Tests for module 'unistr/u32-strncat'. + * modules/unistr/u32-strncat-tests: New file. + * tests/unistr/test-u32-strncat.c: New file. + + Tests for module 'unistr/u16-strncat'. + * modules/unistr/u16-strncat-tests: New file. + * tests/unistr/test-u16-strncat.c: New file. + + Tests for module 'unistr/u8-strncat'. + * modules/unistr/u8-strncat-tests: New file. + * tests/unistr/test-u8-strncat.c: New file. + * tests/unistr/test-strncat.h: New file. + + Tests for module 'unistr/u32-strcat'. + * modules/unistr/u32-strcat-tests: New file. + * tests/unistr/test-u32-strcat.c: New file. + + Tests for module 'unistr/u16-strcat'. + * modules/unistr/u16-strcat-tests: New file. + * tests/unistr/test-u16-strcat.c: New file. + + Tests for module 'unistr/u8-strcat'. + * modules/unistr/u8-strcat-tests: New file. + * tests/unistr/test-u8-strcat.c: New file. + * tests/unistr/test-strcat.h: New file. + + Tests for module 'unistr/u32-stpncpy'. + * modules/unistr/u32-stpncpy-tests: New file. + * tests/unistr/test-u32-stpncpy.c: New file. + + Tests for module 'unistr/u16-stpncpy'. + * modules/unistr/u16-stpncpy-tests: New file. + * tests/unistr/test-u16-stpncpy.c: New file. + + Tests for module 'unistr/u8-stpncpy'. + * modules/unistr/u8-stpncpy-tests: New file. + * tests/unistr/test-u8-stpncpy.c: New file. + * tests/unistr/test-stpncpy.h: New file. + + Tests for module 'unistr/u32-strncpy'. + * modules/unistr/u32-strncpy-tests: New file. + * tests/unistr/test-u32-strncpy.c: New file. + + Tests for module 'unistr/u16-strncpy'. + * modules/unistr/u16-strncpy-tests: New file. + * tests/unistr/test-u16-strncpy.c: New file. + + Tests for module 'unistr/u8-strncpy'. + * modules/unistr/u8-strncpy-tests: New file. + * tests/unistr/test-u8-strncpy.c: New file. + * tests/unistr/test-strncpy.h: New file. + + Tests for module 'unistr/u32-stpcpy'. + * modules/unistr/u32-stpcpy-tests: New file. + * tests/unistr/test-u32-stpcpy.c: New file. + + Tests for module 'unistr/u16-stpcpy'. + * modules/unistr/u16-stpcpy-tests: New file. + * tests/unistr/test-u16-stpcpy.c: New file. + + Tests for module 'unistr/u8-stpcpy'. + * modules/unistr/u8-stpcpy-tests: New file. + * tests/unistr/test-u8-stpcpy.c: New file. + * tests/unistr/test-stpcpy.h: New file. + + Tests for module 'unistr/u32-strcpy'. + * modules/unistr/u32-strcpy-tests: New file. + * tests/unistr/test-u32-strcpy.c: New file. + + Tests for module 'unistr/u16-strcpy'. + * modules/unistr/u16-strcpy-tests: New file. + * tests/unistr/test-u16-strcpy.c: New file. + + Tests for module 'unistr/u8-strcpy'. + * modules/unistr/u8-strcpy-tests: New file. + * tests/unistr/test-u8-strcpy.c: New file. + * tests/unistr/test-strcpy.h: New file. + + Tests for module 'unistr/u32-strnlen'. + * modules/unistr/u32-strnlen-tests: New file. + * tests/unistr/test-u32-strnlen.c: New file. + + Tests for module 'unistr/u16-strnlen'. + * modules/unistr/u16-strnlen-tests: New file. + * tests/unistr/test-u16-strnlen.c: New file. + + Tests for module 'unistr/u8-strnlen'. + * modules/unistr/u8-strnlen-tests: New file. + * tests/unistr/test-u8-strnlen.c: New file. + * tests/unistr/test-strnlen.h: New file. + + Tests for module 'unistr/u32-strlen'. + * modules/unistr/u32-strlen-tests: New file. + * tests/unistr/test-u32-strlen.c: New file. + + Tests for module 'unistr/u16-strlen'. + * modules/unistr/u16-strlen-tests: New file. + * tests/unistr/test-u16-strlen.c: New file. + + Tests for module 'unistr/u8-strlen'. + * modules/unistr/u8-strlen-tests: New file. + * tests/unistr/test-u8-strlen.c: New file. + + Tests for module 'unistr/u32-prev'. + * modules/unistr/u32-prev-tests: New file. + * tests/unistr/test-u32-prev.c: New file. + + Tests for module 'unistr/u16-prev'. + * modules/unistr/u16-prev-tests: New file. + * tests/unistr/test-u16-prev.c: New file. + + Tests for module 'unistr/u8-prev'. + * modules/unistr/u8-prev-tests: New file. + * tests/unistr/test-u8-prev.c: New file. + + Tests for module 'unistr/u32-next'. + * modules/unistr/u32-next-tests: New file. + * tests/unistr/test-u32-next.c: New file. + + Tests for module 'unistr/u16-next'. + * modules/unistr/u16-next-tests: New file. + * tests/unistr/test-u16-next.c: New file. + + Tests for module 'unistr/u8-next'. + * modules/unistr/u8-next-tests: New file. + * tests/unistr/test-u8-next.c: New file. + + Tests for module 'unistr/u32-strmbtouc'. + * modules/unistr/u32-strmbtouc-tests: New file. + * tests/unistr/test-u32-strmbtouc.c: New file. + + Tests for module 'unistr/u16-strmbtouc'. + * modules/unistr/u16-strmbtouc-tests: New file. + * tests/unistr/test-u16-strmbtouc.c: New file. + + Tests for module 'unistr/u8-strmbtouc'. + * modules/unistr/u8-strmbtouc-tests: New file. + * tests/unistr/test-u8-strmbtouc.c: New file. + + Tests for module 'unistr/u32-strmblen'. + * modules/unistr/u32-strmblen-tests: New file. + * tests/unistr/test-u32-strmblen.c: New file. + + Tests for module 'unistr/u16-strmblen'. + * modules/unistr/u16-strmblen-tests: New file. + * tests/unistr/test-u16-strmblen.c: New file. + + Tests for module 'unistr/u8-strmblen'. + * modules/unistr/u8-strmblen-tests: New file. + * tests/unistr/test-u8-strmblen.c: New file. + + Tests for module 'unistr/u32-cpy-alloc'. + * modules/unistr/u32-cpy-alloc-tests: New file. + * tests/unistr/test-u32-cpy-alloc.c: New file. + + Tests for module 'unistr/u16-cpy-alloc'. + * modules/unistr/u16-cpy-alloc-tests: New file. + * tests/unistr/test-u16-cpy-alloc.c: New file. + + Tests for module 'unistr/u8-cpy-alloc'. + * modules/unistr/u8-cpy-alloc-tests: New file. + * tests/unistr/test-u8-cpy-alloc.c: New file. + * tests/unistr/test-cpy-alloc.h: New file. + + Tests for module 'unistr/u32-mbsnlen'. + * modules/unistr/u32-mbsnlen-tests: New file. + * tests/unistr/test-u32-mbsnlen.c: New file. + + Tests for module 'unistr/u16-mbsnlen'. + * modules/unistr/u16-mbsnlen-tests: New file. + * tests/unistr/test-u16-mbsnlen.c: New file. + + Tests for module 'unistr/u8-mbsnlen'. + * modules/unistr/u8-mbsnlen-tests: New file. + * tests/unistr/test-u8-mbsnlen.c: New file. + + Tests for module 'unistr/u32-chr'. + * modules/unistr/u32-chr-tests: New file. + * tests/unistr/test-u32-chr.c: New file. + + Tests for module 'unistr/u16-chr'. + * modules/unistr/u16-chr-tests: New file. + * tests/unistr/test-u16-chr.c: New file. + + Tests for module 'unistr/u8-chr'. + * modules/unistr/u8-chr-tests: New file. + * tests/unistr/test-u8-chr.c: New file. + * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c. + + Tests for module 'unistr/u32-cmp2'. + * modules/unistr/u32-cmp2-tests: New file. + * tests/unistr/test-u32-cmp2.c: New file. + + Tests for module 'unistr/u16-cmp2'. + * modules/unistr/u16-cmp2-tests: New file. + * tests/unistr/test-u16-cmp2.c: New file. + + Tests for module 'unistr/u8-cmp2'. + * modules/unistr/u8-cmp2-tests: New file. + * tests/unistr/test-u8-cmp2.c: New file. + * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h. + + Tests for module 'unistr/u32-cmp'. + * modules/unistr/u32-cmp-tests: New file. + * tests/unistr/test-u32-cmp.c: New file. + + Tests for module 'unistr/u16-cmp'. + * modules/unistr/u16-cmp-tests: New file. + * tests/unistr/test-u16-cmp.c: New file. + + Tests for module 'unistr/u8-cmp'. + * modules/unistr/u8-cmp-tests: New file. + * tests/unistr/test-u8-cmp.c: New file. + * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c. + + Tests for module 'unistr/u32-set'. + * modules/unistr/u32-set-tests: New file. + * tests/unistr/test-u32-set.c: New file. + + Tests for module 'unistr/u16-set'. + * modules/unistr/u16-set-tests: New file. + * tests/unistr/test-u16-set.c: New file. + + Tests for module 'unistr/u8-set'. + * modules/unistr/u8-set-tests: New file. + * tests/unistr/test-u8-set.c: New file. + * tests/unistr/test-set.h: New file. + + Tests for module 'unistr/u32-move'. + * modules/unistr/u32-move-tests: New file. + * tests/unistr/test-u32-move.c: New file. + + Tests for module 'unistr/u16-move'. + * modules/unistr/u16-move-tests: New file. + * tests/unistr/test-u16-move.c: New file. + + Tests for module 'unistr/u8-move'. + * modules/unistr/u8-move-tests: New file. + * tests/unistr/test-u8-move.c: New file. + * tests/unistr/test-move.h: New file. + + Tests for module 'unistr/u32-cpy'. + * modules/unistr/u32-cpy-tests: New file. + * tests/unistr/test-u32-cpy.c: New file. + + Tests for module 'unistr/u16-cpy'. + * modules/unistr/u16-cpy-tests: New file. + * tests/unistr/test-u16-cpy.c: New file. + + Tests for module 'unistr/u8-cpy'. + * modules/unistr/u8-cpy-tests: New file. + * tests/unistr/test-u8-cpy.c: New file. + * tests/unistr/test-cpy.h: New file. + +2010-01-09 Bruno Haible + + Tests for module 'unistr/u32-uctomb'. + * modules/unistr/u32-uctomb-tests: New file. + * tests/unistr/test-u32-uctomb.c: New file. + + Tests for module 'unistr/u16-uctomb'. + * modules/unistr/u16-uctomb-tests: New file. + * tests/unistr/test-u16-uctomb.c: New file. + + Tests for module 'unistr/u8-uctomb'. + * modules/unistr/u8-uctomb-tests: New file. + * tests/unistr/test-u8-uctomb.c: New file. + + Tests for module 'unistr/u32-mbtoucr'. + * modules/unistr/u32-mbtoucr-tests: New file. + * tests/unistr/test-u32-mbtoucr.c: New file. + + Tests for module 'unistr/u16-mbtoucr'. + * modules/unistr/u16-mbtoucr-tests: New file. + * tests/unistr/test-u16-mbtoucr.c: New file. + + Tests for module 'unistr/u8-mbtoucr'. + * modules/unistr/u8-mbtoucr-tests: New file. + * tests/unistr/test-u8-mbtoucr.c: New file. + + Tests for module 'unistr/u32-mbtouc'. + * modules/unistr/u32-mbtouc-tests: New file. + * tests/unistr/test-u32-mbtouc.c: New file. + + Tests for module 'unistr/u16-mbtouc'. + * modules/unistr/u16-mbtouc-tests: New file. + * tests/unistr/test-u16-mbtouc.c: New file. + + Tests for module 'unistr/u8-mbtouc'. + * modules/unistr/u8-mbtouc-tests: New file. + * tests/unistr/test-u8-mbtouc.c: New file. + + Tests for module 'unistr/u32-mbtouc-unsafe'. + * modules/unistr/u32-mbtouc-unsafe-tests: New file. + * tests/unistr/test-u32-mbtouc-unsafe.c: New file. + * tests/unistr/test-u32-mbtouc.h: New file. + + Tests for module 'unistr/u16-mbtouc-unsafe'. + * modules/unistr/u16-mbtouc-unsafe-tests: New file. + * tests/unistr/test-u16-mbtouc-unsafe.c: New file. + * tests/unistr/test-u16-mbtouc.h: New file. + + Tests for module 'unistr/u8-mbtouc-unsafe'. + * modules/unistr/u8-mbtouc-unsafe-tests: New file. + * tests/unistr/test-u8-mbtouc-unsafe.c: New file. + * tests/unistr/test-u8-mbtouc.h: New file. + + Tests for module 'unistr/u32-mblen'. + * modules/unistr/u32-mblen-tests: New file. + * tests/unistr/test-u32-mblen.c: New file. + + Tests for module 'unistr/u16-mblen'. + * modules/unistr/u16-mblen-tests: New file. + * tests/unistr/test-u16-mblen.c: New file. + + Tests for module 'unistr/u8-mblen'. + * modules/unistr/u8-mblen-tests: New file. + * tests/unistr/test-u8-mblen.c: New file. + + Tests for module 'unistr/u32-to-u16'. + * modules/unistr/u32-to-u16-tests: New file. + * tests/unistr/test-u32-to-u16.c: New file. + + Tests for module 'unistr/u32-to-u8'. + * modules/unistr/u32-to-u8-tests: New file. + * tests/unistr/test-u32-to-u8.c: New file. + + Tests for module 'unistr/u16-to-u32'. + * modules/unistr/u16-to-u32-tests: New file. + * tests/unistr/test-u16-to-u32.c: New file. + + Tests for module 'unistr/u16-to-u8'. + * modules/unistr/u16-to-u8-tests: New file. + * tests/unistr/test-u16-to-u8.c: New file. + + Tests for module 'unistr/u8-to-u32'. + * modules/unistr/u8-to-u32-tests: New file. + * tests/unistr/test-u8-to-u32.c: New file. + + Tests for module 'unistr/u8-to-u16'. + * modules/unistr/u8-to-u16-tests: New file. + * tests/unistr/test-u8-to-u16.c: New file. + + Tests for module 'unistr/u32-check'. + * modules/unistr/u32-check-tests: New file. + * tests/unistr/test-u32-check.c: New file. + + Tests for module 'unistr/u16-check'. + * modules/unistr/u16-check-tests: New file. + * tests/unistr/test-u16-check.c: New file. + + Tests for module 'unistr/u8-check'. + * modules/unistr/u8-check-tests: New file. + * tests/unistr/test-u8-check.c: New file. + + * tests/unictype/test-categ_byname.c: Include . + (category_equals): New function. + (main): Add more tests. + * modules/unictype/category-byname-tests (Depends-on): Add stdbool. + + * tests/unictype/test-bidi_byname.c (main): Add more tests. + +2010-01-10 Bruno Haible + + unistr/u*-strcoll: Try harder to distinguish different strings. + * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same, + compare s1 and s2 to see if they are different. + +2010-01-10 Bruno Haible + + unistr/u*-stpncpy: Fix the return value. + * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the + description of the return value consistent with stpncpy in glibc. + * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last + written non-NUL unit. + +2010-01-10 Bruno Haible + + unistr/u*-next: Add missing dependencies. + * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc. + * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc. + * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc. + +2010-01-10 Bruno Haible + + unistr/u8-mbsnlen: Fix return value for incomplete character. + * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of + u8_mblen. + * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr. + Remove unistr/u8-mblen. + * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of + u16_mblen. + * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr. + Remove unistr/u16-mblen. + +2010-01-10 Bruno Haible + + wchar: Fix compilation error when is used from coreutils. + * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t. + Reported by Brian Gough and + Chris Clayton via + Mike Frysinger and Jim Meyering . + +2010-01-09 Bruno Haible + + unistr/u16-to-u32: Reject invalid input. + * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of + u16_mbtouc. + * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr. + Remove unistr/u16-mbtouc. + + unistr/u16-to-u8: Reject invalid input. + * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of + u16_mbtouc. + * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr. + Remove unistr/u16-mbtouc. + + unistr/u8-to-u32: Reject invalid input. + * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of + u8_mbtouc. + * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr. + Remove unistr/u8-mbtouc. + + unistr/u8-to-u16: Reject invalid input. + * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of + u8_mbtouc. + * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr. + Remove unistr/u8-mbtouc. + +2010-01-09 Bruno Haible + + Tests for module 'getlogin'. + * modules/getlogin-tests: New file. + * tests/test-getlogin.c: New file. + + New module 'getlogin'. + * lib/unistd.in.h (getlogin): New declaration. + * lib/getlogin.c: New file. + * m4/getlogin.m4: New file. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN, + HAVE_GETLOGIN. + * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN, + HAVE_GETLOGIN. + * modules/getlogin: New file. + * doc/posix-functions/getlogin.texi: Mention the new module. + Reported by John W. Eaton . + +2010-01-09 Bruno Haible + + getlogin_r: Support for native Windows. + * lib/getlogin_r.c: Include + (getlogin_r): Implement for native Windows. + * tests/test-getlogin_r.c (main): Also test with a huge buffer. + Reported by Tatsuro MATSUOKA + via John W. Eaton . + +2010-01-09 Bruno Haible + + getlogin_r: Small fixes. + * lib/getlogin_r.c (getlogin_r): Don't set errno if the function + succeeds. + * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS + before testing whether getlogin_r is declared. No need to set + HAVE_DECL_GETLOGIN_R to 1. + (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration. + +2010-01-09 Bruno Haible + + * lib/unistd.in.h (getlogin_r): Add comment. + +2010-01-09 Bruno Haible + + Tests for module 'getlogin_r'. + * modules/getlogin_r-tests: New file. + * tests/test-getlogin_r.c: New file. + +2010-01-09 Jim Meyering + + maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule + * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work + also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD. + +2010-01-08 Simon Josefsson + + * lib/dup2.c (rpl_dup2): Improve comment. + +2010-01-08 Eric Blake + + maint.mk: allow packages to add makefile @@ exceptions + * top/maint.mk (_makefile_at_at_check_exceptions): New hook. + (sc_makefile_check): Rename... + (sc_makefile_at_at_check): ...to this, and use hook. + + dup2: work around mingw bug + * lib/dup2.c (rpl_dup2): Sanitize return value on mingw. + Reported by Simon Josefsson. + +2010-01-07 John W. Eaton (tiny change) + + glob: Fix C++ compilation. + * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for + C++. + +2010-01-07 Bruno Haible + + Fix indentation of wctype.in.h, broken since 2007-01-06. + * lib/wctype.in.h: Fix indentation of preprocessor directives. + +2010-01-07 Bruno Haible + + mbslen: Avoid collision with system function. + * lib/string.in.h [MirBSD]: Include . + (mbslen): Undefine first. Alias mbslen to rpl_mbslen. + * m4/mbslen.m4: New file. + * modules/mbslen (Files): Add it. + (configure.ac): Invoke gl_MBSLEN. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN. + * modules/string (Makefile.am): Substitute HAVE_MBSLEN. + Reported by Nelson H. F. Beebe + via Ian Beckwith . + +2010-01-07 Bruno Haible + + dirent: Document the last fix. + * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'. + +2010-01-07 Bruno Haible + + stdio: Ensure defines off_t, ssize_t, va_list. + * lib/stdio.in.h: Include unconditionally. + * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t, + va_list are defined. + * doc/posix-headers/stdio.texi: Document the bug of missing types. + Reported by Eric Blake. + +2010-01-07 Bruno Haible + + xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13. + * modules/xlist (Depends-on): Add 'list', + * modules/xoset (Depends-on): Add 'oset'. + Reported by Ralf Wildenhues . + +2010-01-07 Bruno Haible + + * doc/posix-functions/strcasecmp.texi: Clarify the platforms. + * doc/posix-functions/strncasecmp.texi: Likewise. + +2010-01-07 Bruno Haible + + * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic. + +2010-01-07 John W. Eaton + + wctype: allow C++ use + * lib/wctype.in.h: Add extern "C" block for C++. + +2010-01-06 Eric Blake + + maint.mk: detect incorrect GFDL usage + * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule. + +2010-01-06 Jim Meyering + and Eric Blake + + maint.mk: ignore multi-line copyright in NEWS + * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright. + +2010-01-06 Eric Blake + + select: add missing dependency + * modules/select-tests (Depends-on): Move sockets dependency... + * modules/select (Depends-on): ...here. + Reported by Ian Beckwith. + + doc: regenerate INSTALL + * doc/INSTALL: Reflect recent autoconf update. + * doc/INSTALL.ISO: Likewise. + * doc/INSTALL.UTF-8: Likewise. + + pread: fix compilation on glibc + * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces. + Reported by Ralf Wildenhues. + + dirent: fix test failure + * lib/dirent.in.h (includes): Guarantee ino_t. + Reported by Ralf Wildenhues. + +2010-01-06 Petr Salinger (tiny change) + + linkat, renameat: avoid bad free + * lib/at-func2.c (at_func2): Fix typo. + Reported via Ian Beckwith, from http://bugs.debian.org/561117. + +2010-01-06 Ralf Wildenhues + + cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test + * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2, + to avoid failure of symlink test later. + +2010-01-06 Eric Blake + + stdio, unistd: guarantee ssize_t + * lib/unistd.in.h (includes): Ensure that types required by POSIX + 2008 are exposed when needed. + * lib/stdio.in.h (includes): Likewise. + Reported by Ralf Wildenhues. + +2010-01-06 Paolo Bonzini + + nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if. + * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call + AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo. + +2010-01-06 Jim Meyering + + readtokens: this module *does* require xalloc.h + It uses only functions that were omitted by the old syntax-check rule. + * lib/readtokens.c: Include "xalloc.h" once again. + * modules/readtokens (Depends-on): Add xalloc. + This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c. + +2010-01-05 Eric Blake + + maint: support 'make announcement' from a VPATH build + * top/maint.mk (announcement): Look for correct NEWS file. + +2010-01-05 Aurelien Jarno (tiny change) + + utimens (fdutimens): ignore a negative FD, per contract + * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only + when we have a valid file descriptor. Otherwise, using a brand + new glibc (with just-patched futimens that now fails with EBADF) + would cause this function to fail with ENOSYS. + Reported by Guillaume Ayoub in http://bugs.debian.org/563726. + See also http://bugzilla.redhat.com/552320. + +2010-01-05 Eric Blake + + strcase: document what it provides + * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the + gnulib module. + * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise. + Reported by Dilyan Palauzov . + +2010-01-05 Jim Meyering + + maint: remove useless inclusions of "xalloc.h" + * lib/getloadavg.c: Remove useless inclusion of "xalloc.h". + * lib/readtokens.c: Likewise. + * lib/same.c: Likewise. + * modules/getloadavg (Depends-on): Remove xalloc. + * modules/readtokens: Likewise. + * modules/same: Likewise. + + maint.mk: include 4 more function names in alloca.h-checking regexp + * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete + regexp. Before, we would give a false-positive (saying alloca.h + is included unnecessarily) when the only uses involved omitted symbols. + + xalloc.h: use consistent formatting + * lib/xalloc.h: Move declarations to start in the first column. + +2010-01-05 Eric Blake + + mkdir: avoid xalloc + * lib/mkdir.c (includes): Drop unused header. + Reported by John W. Eaton. + 2010-01-04 Jim Meyering + nl_langinfo: avoid configure-time syntax error + * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested + for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to + the empty string. Don't let that provoke a shell syntax error. + + regcomp, regexec, fnmatch: avoid array bounds read error + * lib/regcomp.c (build_equiv_class): From glibc: + Use only the low 24 bits of a findidx return value as an index + into the weights array. Patch by Ulrich Drepper: + http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30 + * lib/regexec.c (check_node_accept_bytes): Likewise. + * lib/fnmatch_loop.c (FCT): Likewise. + + regcomp: skip collseq lookup when there are no rules + * lib/regcomp.c (lookup_collation_sequence_value): From glibc: + http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58 + + regcomp: recognize ill-formed { } expressions + * lib/regcomp.c (parse_dup_op): From glibc: + http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb + + regcomp: fix typo in comment + * lib/regcomp.c (duplicate_node_closure): Sync from glibc. + s/satisfy/satisfies/. + + regcomp: sync from glibc: remove dead store + * lib/regcomp.c (duplicate_node_closure): Remove useless + search_duplicated_node call and dead store. + regcomp: sync from glibc; always use nl_langinfo * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET), now that gnulib provides it. Recognize UTF8 as well as UTF-8.