From 2c64bc87293bd8bf369b8dbd487a793ea9803775 Mon Sep 17 00:00:00 2001
From: Pádraig Brady
Date: Tue, 31 Jan 2017 21:55:22 -0800
Subject: doc: only distribute 5 years of ChangeLogs
Remove old log files that have corresponding entries
in the source code repository.
This saves about 2.5MB uncompressed, 0.5M compressed.
* Makefile.am (gen-ChangeLog): Adjust to taking all
logs since a particular version (8.15 in this case).
Also mention in the truncated log where to get older entries.
(changelog_etc): Remove the no longer distributed files.
* build-aux/git-log-fix: Remove now unused entries.
* ChangeLog-200[5-8]: Delete.
* doc/ChangeLog-2007: Likewise.
* po/ChangeLog-2007: Likewise.
* old/*: Likewise.
---
old/textutils/ChangeLog | 8752 -----------------------------------------------
old/textutils/NEWS | 471 ---
2 files changed, 9223 deletions(-)
delete mode 100644 old/textutils/ChangeLog
delete mode 100644 old/textutils/NEWS
(limited to 'old/textutils')
diff --git a/old/textutils/ChangeLog b/old/textutils/ChangeLog
deleted file mode 100644
index 96db71fb8..000000000
--- a/old/textutils/ChangeLog
+++ /dev/null
@@ -1,8752 +0,0 @@
-2006-08-17 Paul Eggert
-
- * ChangeLog: Add copyright notice.
- * NEWS: Likewise.
-
-2002-07-29 Jim Meyering
-
- * Version 2.1.
-
- * src/tail.c: Adjust command examples in comments to use
- POSIX 1003.1-2001 option syntax.
- * src/sort.c: Likewise.
- From Paul Eggert.
-
-2002-07-28 Jim Meyering
-
- * configure.ac: Require automake-1.6b.
-
-2002-07-20 Jim Meyering
-
- * Version 2.0.22.
-
- * Upgrade to cvs automake -- required to work with 2.53b.
- * configure.ac: Require automake-1.6a.
-
- * Upgrade to gettext-0.11.3.
- * Upgrade to autoconf-2.53b.
-
-2002-07-02 Jim Meyering
-
- * src/cat.c, src/cksum.c, src/comm.c, src/csplit.c, src/cut.c (usage):
- Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
- * src/expand.c, src/fmt.c, src/fold.c, src/head.c, src/join.c: Likewise.
- * src/md5sum.c, src/nl.c, src/od.c, src/paste.c, src/pr.c: Likewise.
- * src/sort.c, src/split.c, src/sum.c, src/tac.c, src/tail.c: Likewise.
- * src/tr.c, src/tsort.c, src/unexpand.c, src/uniq.c, src/wc.c: Likewise.
-
-2002-06-22 Jim Meyering
-
- * configure.ac: Invoke AC_GNU_SOURCE very early.
-
-2002-06-15 Jim Meyering
-
- * src/cksum.c: Include before system.h.
-
-2002-05-22 Jim Meyering
-
- * src/od.c [struct dummy]: Renamed. Don't rely on portability of
- zero-length arrays. Instead, use sizes of -1 or +1.
- Reported by Eric Backus.
-
-2002-05-14 Jim Meyering
-
- `od -t f8' didn't work.
- This bug was introduced with my change of 2000-10-22 (textutils-2.0.8).
- * src/od.c (ulonglong_t): Move declaration to precede new use.
- [enum size_spec] (N_SIZE_SPECS): New member.
- (width_bytes): Add initializer corresponding to ulonglong_t type.
- (struct assert_width_bytes_matches_size_spec_decl): Declare.
- Based on a patch from Tony Kocurko.
-
-2002-04-29 Paul Eggert
-
- Use ENABLE_NLS only for gettext-related stuff, not also for
- setlocale-related stuff. From a patch suggested by Bruno
- Haible.
-
- Since setlocale is now almost universal, this patch also
- removes some of the optimizations that clutter up the code and
- which don't help all that much even on hosts that lack
- setlocale.
-
- * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
- * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
- Do not check for alloca.h (no longer used) or stdbool.h (was never
- used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
-
- * src/sys2.h (HAVE_SETLOCALE): Define to 0 if not defined.
- * src/comm.c (compare_files): Replace #ifdef ENABLE_NLS
- with if (HAVE_SETLOCALE).
- * src/join.c (keycmp): Likewise.
- * src/sort.c (keycompare, compare): Likewise.
-
- * src/comm.c (hard_LC_COLLATE): Define even if ! ENABLE_NLS.
- * src/join.c (hard_LC_COLLATE): Likewise.
- * src/sort.c (hard_LC_COLLATE): Likewise.
-
- * src/comm.c (main): Always initialize hard_LC_COLLATE.
- Put initialization next to other locale-related stuff.
- * src/join.c (main): Likewise.
- * src/sort.c (main): Likewise.
-
- * src/sort.c: Include even if ! ENABLE_NLS.
- (decimal_point, th_sep): Depend on HAVE_SETLOCALE, not ENABLE_NLS.
- (main): Likewise.
- (MONTHTAB_CONST): Remove; all uses removed.
- (struct_month_cmp, inittables): Do not depend on ENABLE_NLS.
- (main): hard_LC_TIME locale does not depend on ENABLE_NLS.
-
-2002-04-29 Jim Meyering
-
- * src/tail.c (parse_obsolescent_option): Do not limit the maximum
- line/byte count (when specified via obsolete option syntax) to be
- less than ULONG_MAX on systems where OFF_T_MAX is larger.
-
-2002-04-28 Paul Eggert
-
- * src/tail.c (tail_forever): Do not treat
- max_n_unchanged_stats_between_opens specially (as if it were
- infinite) if it has its maximal value. Similarly for
- max_n_consecutive_size_changes_between_opens.
-
-2002-04-28 Jim Meyering
-
- Avoid new warnings from gcc.
- * src/pr.c [struct COLUMN] : Declare member to be const.
- (init_fps): Declare local variable `firstname' to be const.
-
-2002-04-25 Jim Meyering
-
- * src/wc.c (usage): Adjust ordering to match that of default output.
- Suggestion from Gaute Hvoslef Kvalnes.
-
- * configure.ac (AM_GNU_GETTEXT): Add external arg.
- (AC_CONFIG_FILES): Remove intl/Makefile.
- * Makefile.am (SUBDIRS): Remove intl.
- * src/Makefile.am (INCLUDES): Remove -I../intl.
-
-2002-04-15 Jim Meyering
-
- * src/tr.c (usage): Give a verbose description of --squeeze-repeats,
- including the mention of SET1. Reported by Dan Jacobson.
-
-2002-04-12 Jim Meyering
-
- * src/Makefile.am (LDADD): List ../lib/libfetish.a both before
- and after @LIBINTL@. Thanks to Paul Eggert for the fix and to
- Bruno Haible for diagnosing the problem.
-
-2002-03-16 Jim Meyering
-
- * src/Makefile.am (datadir): Don't override $(datadir)
- which might be set by --datadir and different from $(prefix)/share.
- Patch from Albert Chin-A-Young.
-
-2002-03-10 Jim Meyering
-
- * configure.ac (AM_INIT_AUTOMAKE): Specify the required version
- of automake (1.6), and options (gnits dist-bzip2), rather than...
- * Makefile.am (AUTOMAKE_OPTIONS): ...here. Remove definition.
-
-2002-03-09 Jim Meyering
-
- * Makefile.am (EXTRA_DIST): Remove config/config.rpath,
- now that automake knows about it.
-
-2002-03-05 Jim Meyering
-
- * Makefile.am (EXTRA_DIST): Add config/config.rpath.
-
-2002-02-23 Paul Eggert
-
- * src/cat.c (simple_cat, cat, main): Use char * rather than
- unsigned char *, to avoid some technical violations of the C
- standard, and to avoid the need for casts. I guess the
- unsigned char * was probably there for improved performance
- with ancient compilers, but the code wasn't using the
- unsignedness any more.
- Reported by Nelson H. F. Beebe.
-
- (cat): int -> size_t for full_write arg. This doesn't
- fix any bugs since the buffer size is small, but it makes
- the code a bit clearer.
-
-2002-02-18 Jim Meyering
-
- * Version 2.0.21.
-
- * tests/tail/Test.pm: For tests matching /^(obs|err-[134])/,
- put _POSIX2_VERSION=199209 in the environment, so the tests succeed
- even when the environment would have contained _POSIX2_VERSION=200112.
- * tests/uniq/Test.pm (test_vector): Rename tests of obsolete usage
- to have prefix of `obs'. Adjust environment for those tests as above.
-
- * tests/mk-script: When getting input via a pipe, apply the
- environment settings to the command in question, not to `cat'.
- No longer allow more than one element in the $Test::env or
- $Test::env_default arrays. No caller used that feature.
-
-2002-02-17 Jim Meyering
-
- * tests/head/Test.pm: Accept pre-POSIX 1003.1-2001 options.
- * tests/pr/Test.pm: Likewise.
- * tests/sort/Test.pm: Likewise.
-
- * Makefile.cfg (wget_files): Reflect new location of these files.
-
-2002-02-16 Jim Meyering
-
- * ABOUT-NLS, intl/*: Update to Gettext 0.11.
- * INSTALL: Update to Autoconf 2.52h.
-
- * src/Makefile.am (datadir): Use `share' in place of @DATADIRNAME@,
- per Gettext-0.11.
- (LDADD): Use @LIBINTL@ instead of @INTLLIBS@, per Gettext-0.11.
-
- * configure.ac (AC_CONFIG_AUX_DIR): New macro invocation.
- (ALL_LINGUAS): Remove: now in po/LINGUAS as per Gettext 0.11.
-
- * config: New subdirectory, containing the following files from .:
- config.guess, config.sub, depcomp, missing, install-sh, mkinstalldirs.
- Move the following files here from doc: texinfo.tex, mdate-sh.
-
-2002-02-15 Paul Eggert
-
- Add support for _POSIX2_VERSION, which lets you pick which POSIX
- version you want the utilities to conform to. Remove warnings about
- failure to conform to a future POSIX version.
-
- * NEWS, doc/coreutils.texi: Document _POSIX2_VERSION.
- * doc/coreutils.texi (Standards Conformance): New section.
-
- * src/expand.c: Include posixver.h.
- (usage): Document only the intersection of the old and new behaviors,
- to encourage portability.
- * src/fold.c: Likewise.
- * src/head.c: Likewise.
- * src/od.c: Likewise.
- * src/pr.c: Likewise.
- * src/sort.c: Likewise.
- * src/split.c: Likewise.
- * src/uniq.c: Likewise.
- * src/tail.c: Likewise.
- * src/unexpand.c: Likewise.
-
- * src/expand.c (shortopts): Remove; no longer needed.
- * src/od.c (short_options): Likewise.
- * src/pr.c (short_options): Likewise.
- * src/sort.c (short_options): Likewise.
- * src/split.c (shortopts): Likewise.
- * src/uniq.c (shortopts): Likewise.
- * src/unexpand.c (shortopts): Likewise.
-
- * src/od.c (COMMON_SHORT_OPTIONS): New macro.
- * src/pr.c (COMMON_SHORT_OPTIONS): Likewise.
- * src/sort.c (COMMON_SHORT_OPTIONS): Likewise.
-
- * src/expand.c (main): Revert to previous behavior, except report
- an error and exit if the obsolete syntax is used and if conforming
- to the new standard.
- * src/fold.c (main): Likewise.
- * src/head.c (main): Likewise.
- * src/split.c (main): Likewise.
- * src/uniq.c (main): Likewise.
- * src/tail.c (main, parse_obsolescent_option): Likewise.
- * src/unexpand.c (main): Likewise.
-
- * src/od.c (STRINGS_OPTION, WIDTH_OPTION): Remove; no longer needed.
- All uses changed back to the corresponding short options.
- * src/pr.c (SEP_STRING_OPTION): Likewise.
-
- * src/od.c (main): Parse options using POSIX 1003.1-2001 rules if
- conforming to that standard. Do not warn of obsolete options.
- * src/pr.c (main): Likewise.
- * src/sort.c (main): Likewise.
-
- * src/system.h (_POSIX2_VERSION, POSIX2_VERSION): Remove definitions.
- (OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): Likewise.
-
-2002-02-16 Jim Meyering
-
- * tests/misc/split-a: New test for change of 2002-02-05.
- * tests/misc/Makefile.am (TESTS): Add split-a.
-
-2002-02-12 Jim Meyering
-
- * src/split.c (DEFAULT_SUFFIX_LENGTH): Define constant.
- (suffix_length): Use it here.
- (usage): Use it here.
-
-2002-02-05 Paul Eggert
-
- Change 'split' to conform to POSIX. It now accepts an -a or
- --suffix-length option, and refuses to generate more files
- than there are suffixes.
-
- * NEWS, doc/coreutils.texi: Document this.
- * src/split.c: Include "dirname.h".
- (outbase): Now a global var.
- (outfile_end): Remove.
- (suffix_length): New var.
- (shortopts, longopts, main): Add -a or --suffix-length.
- (next_file_name): Implement -a. Do not extend the suffix length.
- Check for file names that are too long.
- (main): Move outfile initialization to next_file_name.
-
- * src/split.c (shortopts): Remove -v (a typo).
-
-2002-02-11 Jim Meyering
-
- * tests/misc/head-pos: New file/test for the change of 2002-02-08.
- * tests/misc/Makefile.am (TESTS): Add head-pos.
-
- * src/tr.c (unquote): Make comment a little clearer.
-
-2002-02-08 Paul Eggert
-
- * src/head.c (head_lines): If we have read too much data, try
- to seek back to the position we would have gotten to had we
- been reading one byte at a time. POSIX currently doesn't
- require this, but it's easy to do and some software relies on it.
-
-2002-02-02 Jim Meyering
-
- * src/uniq.c (main): Prepend `warning: ' to the diagnostic, so it's
- consistent with all of the other `... is obsolete...' diagnostics.
-
-2002-01-31 Paul Eggert
-
- Add more support for POSIX 1003.1-2001, which requires removal for
- support of obsolete "-N" option syntax in expand, head, fold,
- split, tail, unexpand, uniq, and which prohibits options with
- optional arguments in od and pr.
-
- * NEWS: Document this.
- * doc/coreutils.texi: Likewise.
- * src/expand.c (usage): Likewise.
- * src/fold.c (usage): Likewise.
- * src/head.c (usage): Likewise.
- * src/od.c (usage): Likewise.
- * src/pr.c (usage): Likewise.
- * src/split.c (usage): Likewise.
- * src/unexpand.c (usage): Likewise.
- * src/uniq.c (usage): Likewise.
-
- * NEWS: Improve doc for previous fix in this area.
-
- * src/expand.c (shortopts): New constant.
- * src/od.c (short_options): Likewise.
- * src/pr.c (short_options): Likewise.
- * src/sort.c (short_options): Likewise.
- * src/split.c (shortopts): Likewise.
- * src/unexpand.c (shortopts): Likewise.
- * src/uniq.c (shortopts): Likewise.
-
- * src/expand.c (main): Check for obsolete options.
- * src/fold.c (main): Likewise.
- * src/head.c (main): Likewise.
- * src/od.c (main): Likewise.
- * src/pr.c (main): Likewise.
- * src/sort.c (main): Likewise.
- * src/split.c (main): Likewise.
- * src/tail.c (parse_obsolescent_option, main): Likewise.
- * src/unexpand.c (main): Likewise.
- * src/uniq.c (main): Likewise.
-
- * src/head.c (header_mode_option): New constant.
-
- * src/od.c: New enum for long options.
-
- * src/pr.c (SEP_STRING_OPTION): New enum value.
- (long_options): Use it.
-
- * src/split.c (main): Use -1, not EOF, for getopt_long.
-
- * src/system.h (OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): New macros.
-
- * src/fold.c (main): Fix bug: -- -N was treated as -N --.
-
-2002-02-01 Jim Meyering
-
- * src/tail.c (start_lines): Handle the case in which bytes_read is zero.
-
-2002-01-28 Jim Meyering
-
- * Makefile.maint (ac-check): Remove, now that we no longer have
- to duplicate that information.
- (local-check): Remove ac-check.
-
- * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d.
-
- * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro.
- (ALL_LINGUAS): Add the bokmål dialect of Norwegian (nb).
-
-2002-01-27 Jim Meyering
-
- tail -n +2 would perform an extra read after encountering EOF
- * src/tail.c (start_lines): Detect EOF, inform caller.
- (tail_lines): Upon EOF in start_lines, return immediately.
-
-2002-01-22 Jim Meyering
-
- * Version 2.0.20.
-
-2002-01-22 Paul Eggert
-
- * src/od.c (skip): Remove redundant check for overflow.
- fseeko's seek argument is already known to be in range,
- since it is less than the file size.
-
-2002-01-22 Jim Meyering
-
- * po/POTFILES.in: Add lib/xmemcoll.c.
-
-2002-01-22 Paul Eggert
-
- * src/tac.c (save_stdin): Report proper errno value after
- fwrite failures. Do not bother to rewind the temp file, as
- it'll be read backwards anyway.
-
-2002-01-22 Paul Eggert
-
- * src/ptx.c (swallow_file_in_memory): Work even if `open' returns 0.
- Check for `close' error.
-
-2002-01-22 Paul Eggert
-
- Port to glibc 2.2.5, whose mmap stdio positions the underlying
- file descriptor at a nonzero offset after an fopen.
-
- * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
- * src/od.c (skip): Use fseeko rather than lseek.
- (Also, check for overflow when converting uintmax_t to off_t.)
- * src/sys2.h (EOVERFLOW, fseeko): New macros.
-
-2001-01-21 Paul Eggert
-
- * src/comm.c: Include xmemcoll.h, not memcoll.h.
- Use xmemcoll instead of memcoll.
- * src/join.c: Likewise.
- * src/sort.c: Likewise.
-
- * src/sort.c (die): Do not invoke cleanup; atexit does this now.
- (main): Use atexit to invoke cleanup on exit.
- Set xmemcoll_exit_failure to SORT_FAILURE.
-
-2002-01-20 Paul Eggert
-
- * src/comm.c (compare_files): Don't assume that the difference
- between two size_t values can be stored in an int; this doesn't
- work, for example, on 64-bit Solaris.
- * src/sort.c (CMP_WITH_IGNORE): Likewise.
- * src/join.c (keycmp): Likewise. Also, fix the type of two locals
- to be size_t instead of int.
-
-2002-01-20 Paul Eggert
-
- * src/csplit.c: Don't include "xalloc.h", as system.h already
- does that via sys2.h.
- * src/sort.c: Likewise.
-
-2002-01-19 Jim Meyering
-
- * configure.ac: Remove code that set LIBOBJS in support of ansi2knr.
- The latest version of autoconf objected to it, and besides, I don't
- care too much about K&R support these days.
-
-2002-01-18 Jim Meyering
-
- Fix tr so it no longer gets a failed assertion for [::] or [==].
-
- * src/tr.c (xmemdup): Rename from `substr' and rewrite to
- take only pointer/length parameters.
- (build_spec_list): Update sole caller.
- Properly diagnose the invalid specs [::] and [==].
- Pawel Prokop reported that `tr '[::]' x' elicits a failed assertion.
- * tests/tr/Test.pm: Add tests for the above fix.
-
-2002-01-14 Paul Eggert
-
- * src/sort.c (main): Issue a warning for obsolete usage, unless
- POSIXLY_CORRECT.
- * src/tail.c (parse_obsolescent_option): Likewise.
- * src/uniq.c (main): Likewise.
-
-2002-01-14 Paul Eggert
-
- Add support for POSIX 1003.1-2001, which requires removal for
- support of obsolete "+" option syntax in sort, tail, and uniq.
-
- * NEWS: Document this.
-
- * src/sort.c (usage, main): Implement this.
- * src/tail.c (usage, parse_obsolescent_option): Likewise.
- * src/uniq.c (usage, main): Likewise.
- * src/system.h (_POSIX2_VERSION, POSIX2_VERSION): New macros.
-
- * src/sys2.h (ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.
-
-2002-01-14 Jim Meyering
-
- * tests/misc/sort: New test, for just-fixed bug.
- * tests/misc/Makefile.am (TESTS): Add sort.
- (TESTS_ENVIRONMENT): Add PROG=$$tst. This is a gross kludge
- that depends on the name of an automake-generated local variable.
-
-2002-01-13 Paul Eggert
-
- * src/sort.c (mergefps): Fix bug when eliminating empty files.
- Bug reported by James Hutt.
-
-2002-01-13 Jim Meyering
-
- * tests/help-version: Tweak to work with the programs in diffutils.
-
-2002-01-09 Jim Meyering
-
- * configure.in (ALL_LINGUAS): Add Turkish (tr).
-
-2001-12-18 Paul Eggert
-
- * src/sort.c (usage, specify_sort_size): Accept 'K' (which is
- now preferred, as it connotes 1024) as well as 'k'.
- * NEWS: Document this change.
-
-2001-12-17 Jim Meyering
-
- * src/uniq.c (usage): Remove stray `)' in --help output.
- Reported by Padraig Brady.
-
- * Makefile.maint (real_dir): Remove unused variable.
- (url_dir_list): Don't set define it here, but...
- * Makefile.cfg (url_dir_list): ...define it here instead.
- (hosts, a_host, b_host): Remove now-unused variables.
- (alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.
-
-2001-12-12 Bruno Haible
- Paul Eggert
-
- * src/wc.c (wc): Use ISSPACE and iswspace in addition to hard-coding
- the ASCII space character.
-
-2001-12-08 Jim Meyering
-
- * Version 2.0.19.
-
- * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's
- no longer available at that location.
-
-2001-12-03 Jim Meyering
-
- * src/od.c, src/tail.c, src/tr.c (usage): I will not split translatable
- strings in the middle of a sentence. I will not split translatable
- strings in the middle of a sentence. I will not split translatable
- strings in the middle of a sentence. ...
- * src/join.c (usage): Merge lone "\n" into adjacent string.
- * src/md5sum.c (usage): Likewise.
- * src/paste.c (usage): Likewise.
- Reported by Karl Eichwalder.
-
-2001-12-02 Jim Meyering
-
- * Makefile.maint (emit-upload-commands): Fix typo: s/distdir/PACKAGE/.
-
-2001-12-01 Jim Meyering
-
- * Version 2.0.18.
-
- * Makefile.maint (po-check): Check for uses of _() not just in .c
- files, but also in .h files.
-
- Ideally, there would be just one translation for all --help
- and --version description strings. Before this change, they
- differed only in the number of blanks between the option name
- and the description. Someday gettext may be smart enough
- to merge such strings and to reconstruct the proper spacing at
- run time. In the mean time, now there is one string for each,
- and those descriptions in the --help output are no longer aligned
- with the others.
- * src/sys2.h (HELP_OPTION_DESCRIPTION): New macro.
- (VERSION_OPTION_DESCRIPTION): New macro.
- * src/cat.c, src/cksum.c, src/comm.c, src/csplit.c, src/cut.c:
- * src/expand.c, src/fmt.c, src/fold.c, src/head.c, src/join.c:
- * src/md5sum.c, src/nl.c, src/od.c, src/paste.c, src/pr.c, src/ptx.c:
- * src/sort.c, src/split.c, src/sum.c, src/sys2.h, src/tac.c:
- * src/tail.c, src/tr.c, src/tsort.c, src/unexpand.c, src/uniq.c:
- * src/wc.c (usage): Use new macros, HELP_OPTION_DESCRIPTION and
- VERSION_OPTION_DESCRIPTION instead of hard-coding --help and
- --version descriptions.
- * po/POTFILES.in: Add src/sys2.h.
-
-2001-11-27 Jim Meyering
-
- * src/system.h (SET_MODE) [O_BINARY]: Call setmode, not set_mode.
- From Matthew Smith.
-
-2001-11-26 Jim Meyering
-
- * src/cat.c (cat): Don't test whether the full_write return value
- (of type size_t) is less than 0. Reported by Nelson H. F. Beebe,
- as a warning from Irix 6.5's C compiler.
-
-2001-11-25 Jim Meyering
-
- * src/cksum.c (usage): Indent --help and --version strings to
- start in the 7th column.
- * src/pr.c (usage): Likewise.
-
-2001-11-23 Jim Meyering
-
- Factor out some common strings to make translation easier.
-
- * cat.c, cksum.c, comm.c, csplit.c, cut.c, expand.c, fmt.c, fold.c:
- * head.c, join.c, md5sum.c, nl.c, od.c, paste.c, pr.c, ptx.c:
- * sort.c, split.c, sum.c, tac.c, tail.c, tr.c, tsort.c, unexpand.c:
- * uniq.c, wc.c: Split usage strings so that --help and --version
- descriptions are alone in their own string.
- Likewise for the one that says ``Mandatory arguments to long
- options are mandatory for short options too.''
- Suggestion from Karl Eichwalder.
-
- * src/ptx.c (main): Don't split copyright string in the middle
- of a sentence.
-
-2001-11-22 Jim Meyering
-
- * Version 2.0.17.
-
- csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2
- * src/csplit.c: No longer include assert.h.
- (process_line_count): Remove invalid assertion. The test that caused
- the failure has been in the code since before 1992-11-08, but since
- 1996 it's been in an assertion. That assertion was disabled by default
- until textutils-1.22g (1999-01-10). Reported by Eric Pemente.
-
- * tests/misc/csplit: New file. Test for the above fix and others.
- * tests/misc/Makefile.am (TESTS): Add csplit.
- * tests/Makefile.am (EXTRA_DIST): Add lang-default.
-
-2001-11-19 Jim Meyering
-
- * src/tail.c (xlseek): New function.
- Call it instead of lseek, in most cases, so any failure is reported.
-
-2001-11-18 Jim Meyering
-
- * config.sub: Update from master repository.
- * config.guess: Likewise.
-
-2001-11-17 Jim Meyering
-
- * Makefile.cfg ($(srcdir)/m4/jm-glibc-io.m4): Use $(move_if_change),
- not the literal `move-if-change'.
-
- * src/tail.c (tail_forever): Add a cast.
-
- Avoid compiler warnings.
- * src/fmt.c: Remove `unsigned' attribute from type of global `prefix'.
- (copy_rest): Cast to (unsigned char *) before dereferencing.
- (get_prefix): Likewise.
-
- * configure.ac: Replace use of the one-arg form of AC_INIT
- with a use of the 3-arg form and a use of AC_CONFIG_SRCDIR.
-
-2001-11-14 Paul Eggert
-
- * src/tail.c (file_lines): Remove unnecessary cast.
- (tail_lines): Could have called file_lines even though the first
- lseek failed. Fix that.
-
-2001-11-14 Jim Meyering
-
- * src/tail.c (file_lines): Add a parameter, start_pos.
- Work properly even when the read pointer is not at beginning of file.
- (tail_lines): Call file_lines for any regular file, as long as lseek
- can be used to seek to its end, not just when the initial read pointer
- is at beginning of file.
-
-2001-11-13 Jim Meyering
-
- * src/tail.c (tail_lines): Move declaration of local `length'
- into scope where it's used.
- (tail_file): Likewise for local `stats'.
-
- * tests/tail-2/Makefile.am (TESTS): Add proc-ksyms and start-middle.
- * tests/tail-2/start-middle: New test, for the bug fixed on 1995-07-24.
-
- `tail /proc/ksyms' would segfault on Linux.
- * src/tail.c (tail_lines): Use status of lseek (...SEEK_END) call
- in deciding whether to call file_lines or pipe_lines.
- From Herbert Xu.
- * tests/tail-2/proc-ksyms: New test, for the above fix.
-
-2001-11-11 Jim Meyering
-
- * src/od.c (struct tspec): Declare function pointer with prototype.
-
- * src/sum.c (main): Declare function pointer with prototype.
-
- * src/tsort.c (count_items): Mark parameter as unused.
-
- * src/sort.c (struct_month_cmp): Guard definition with the same
- cpp condition that guards the use.
-
- * src/tail.c (xwrite): Remove assertion that size_t N >= 0.
-
- * src/pr.c (struct COLUMN) [print_func]: Declare with a protype.
- (struct COLUMN) [char_func]: Declare with a protype.
-
- * src/od.c (parse_old_offset): Declare to be static.
-
- * src/join.c (make_blank): Declare to be static.
- (prfield): Declare local to be of type size_t, not int.
-
- Some help strings were very long. Split them so that
- they're no longer than the magic length 509 that ISO C89
- compilers are required to support. Sorry, translators :-(
-
- * src/md5sum.c (usage): Split --help output into smaller pieces.
- * src/ptx.c (main, usage): Likewise.
- * src/fmt.c (usage): Likewise.
-
- * src/wc.c (usage): Split --help output into smaller pieces.
- Use fputs, not printf.
- * src/cat.c (usage): Likewise.
- * src/cut.c (usage): Likewise.
- * src/csplit.c (usage): Likewise.
- * src/expand.c (usage): Likewise.
- * src/head.c (usage): Likewise.
- * src/join.c (usage): Likewise.
- * src/nl.c (usage): Likewise.
- * src/od.c (usage): Likewise.
- * src/pr.c (usage): Likewise.
- * src/sort.c (usage): Likewise.
- * src/split.c (usage): Likewise.
- * src/tac.c (usage): Likewise.
- * src/tr.c (usage): Likewise.
- * src/unexpand.c (usage): Likewise.
- * src/uniq.c (usage): Likewise.
- * src/tail.c (usage): Likewise.
-
- * src/sys2.h (alloca) [__GNUC__]: Define only if not already defined.
-
- * src/Makefile.am (sort_LDADD): Reflect spelling change:
- s/POW_LIBM/POW_LIB/.
-
-2001-11-10 Jim Meyering
-
- * src/nl.c (proc_text): Use `puts' to output a string of spaces,
- not printf. This avoids a warning from gcc's -Wformat-security.
-
-2001-11-09 Jim Meyering
-
- * configure.ac: Use AC_CONFIG_FILES(...) and call AC_OUTPUT with no
- arguments.
-
-2001-11-05 Jim Meyering
-
- * src/sort.c (usage): Don't recommend setting LC_COLLATE=C.
- That can cause problems (now documented in coreutils.texi).
-
-2001-11-04 Jim Meyering
-
- * uniq.c, unexpand.c, tail.c, tac.c, split.c, sort.c, pr.c, paste.c:
- * od.c, nl.c, head.c, fold.c, expand.c, cut.c, csplit.c (usage):
- Say that ``Mandatory arguments to long options are mandatory for
- short options too.''
-
- * src/ptx.c (usage): Add one-line description.
-
-2001-10-28 Jim Meyering
-
- * tests/sum/sysv: New test for the fix below.
- * tests/sum/Makefile.am (TESTS): Add sysv.
-
-2001-10-27 Paul Eggert
-
- * src/sum.c: Include human.h.
- (ROTATE_RIGHT): Remove; it was slow and the comment was
- misleading anyway.
- (bsd_sum_file): Avoid unsigned and long when they're not needed.
- Compute total input bytes as uintmax_t, not long, so that the
- code works even with files whose size does not fit in 'long'.
- (sysv_sum_file): Likewise.
- (sysv_sum_file): Do not reduce checksum until the end; this is
- what System V does.
- Reported by Nick Lawes.
-
-2001-10-27 Jim Meyering
-
- Give an accurate diagnostic when `head --bytes=30M' fails.
- * src/head.c (string_to_integer): Check explicitly for overflow,
- and lump everything else together as `invalid'.
-
-2001-10-04 Jim Meyering
-
- Rename --all-repeated argument `precede' to `prepend'.
- * src/uniq.c (enum delimit_method): s/DM_PRECEDE/DM_PREPEND/
- and change all uses.
- (delimit_method_string): s/precede/prepend/
- * tests/uniq/Test.pm: Adjust tests accordingly.
- Patches by Padraig Brady.
-
- * src/uniq.c (usage): Correct typo in description of --all-repeated.
- Patch by Padraig Brady.
-
-2001-09-30 Jim Meyering
-
- * Version 2.0.16.
-
- tail -F would segfault
- * src/tail.c (parse_options): Add missing `break;' from last change.
-
-2001-09-28 Jim Meyering
-
- * configure.ac: Tell automake to use the file name `config.hin'
- rather than the two-`.' config.h.in.
-
-2001-09-26 Jim Meyering
-
- * man/Makefile.am (common_dep): Define it, so we depend on configure.ac.
-
- * configure.ac: Renamed from configure.in.
-
-2001-09-25 Jim Meyering
-
- * src/Makefile.am (sort_DEPENDENCIES): Remove definition altogether.
- It adds nothing to the existing: $(PROGRAMS): ../lib/libfetish.a.
-
-2001-09-24 Paul Eggert
-
- * src/Makefile.am (sort_DEPENDENCIES): Depend only on
- ../lib/libfetish.a, not on $(LDADD), since the latter may
- contain `-lintl'. This resembles yesterday's patch for the
- `$(PROGRAMS)' rule.
-
-2001-09-23 Jim Meyering
-
- * Version 2.0.15.
-
- * src/Makefile.am ($(PROGRAMS)): Depend only on ../lib/libfetish.a,
- not on $(LDADD), since the former may contain `-lintl'.
-
- * Makefile.am (SUBDIRS): When using newer gettext (in which
- intl/libintl.h is created by rules intl/Makefile)
- `intl' must precede `lib'.
-
-2001-09-22 Jim Meyering
-
- * ABOUT-NLS: Upgrade to gettext 0.10.40
- * intl: Upgrade entire directory to gettext 0.10.40
- * po/ChangeLog: New file.
-
- * Makefile.am (DISTCLEANFILES): Remove definition, since intl/libintl.h
- is no longer created via configure.
-
- * tests/od/od-N: New test for the 2001-09-19 fix by Ian Bruce.
- * tests/od/Makefile.am: New file.
- * tests/od: New directory.
- * tests/Makefile.am (SUBDIRS): Add od.
- * configure.in (AC_OUTPUT): Add tests/od/Makefile.
-
-2001-09-19 Paul Eggert
-
- * src/od.c (MAX_ADDRESS_LENGTH, pseudo_offset, format_address,
- n_bytes_to_skip, skip, format_address_none,
- format_address_std, format_address_paren,
- format_address_label, write_block, parse_old_offset, dump,
- dump_strings, main):
- Use uintmax_t, not off_t, for file addresses, so that we can
- handle multiple large files even if the sum of their sizes
- exceeds off_t limits.
-
- (print_s_char, print_char, print_s_short, print_short,
- print_int, print_long, print_long_long, print_float,
- print_double, print_long_double, dump_hexl_mode_trailer,
- print_named_ascii, print_ascii, decode_one_format):
- Use size_t, not off_t, for in-memory byte counts.
-
- (end_offset): New var.
- (dump, dump_strings): Use it.
- (main): Set it, but check for overflow while doing so.
-
- (skip): Report an error if an in-range lseek fails on a
- regular file, as something's seriously wrong. Check for
- negative regular file sizes (possible with some broken NFS
- implementations).
-
- (parse_old_offset): Now all offsets are valid, so return a
- success boolean and take a pointer to an offset as an argument.
- All callers changed.
-
- (dump_strings): Check for overflow when computing end_offset -
- string_min.
-
- (main): Remove OFF_T_MAX checks that are no longer needed.
- Don't bother assigning through temporary when there's no size
- limit to check.
-
-2001-09-19 Jim Meyering
-
- * src/od.c (open_next_file): Use SETVBUF, not setbuf.
- (skip): Revert part of last change: use lseek, not fseek.
-
- When --read-bytes=N (-N N) is used, disable input buffering in
- the standard I/O library. Otherwise, od would read more input
- than requested. This could have caused problems when reading
- from pipes, character devices, or open file descriptors inherited
- from a parent process.
-
- * src/od.c (open_next_file): New function, factored out of...
- (skip): Adapt to use open_next_file.
- (read_char): Likewise.
- (read_block): Likewise.
- (main): Likewise.
- (dump): Fix an off-by-one error that could have made od fail to
- report a read error when reading from a named file (not stdin).
- (check_and_close): Account for the fact that in_stream may now be NULL.
- (usage): Correct descriptions of -j and -N options.
- Patch by Ian Bruce.
-
-2001-09-16 Jim Meyering
-
- * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5.
-
- * man/Makefile.am: Revamp this file, as for fileutils.
-
- * src/md5sum.c (digest_check): On systems for which setmode actually
- does something, arrange to read the file containing checksum strings
- in text mode. Based on a patch from Chris Faylor.
- * src/system.h (SET_MODE): Define.
-
-2001-09-12 Jim Meyering
-
- The command `echo a|./fmt -2147483647' would cause fmt to segfault.
- * src/fmt.c (fmt_paragraph): Test for sentinal directly, rather than
- doing arithmetic with it's potentially large (INT_MAX) length.
- * tests/fmt/basic: Add tests for the above.
-
- tail: accept new option: -F, equivalent to `--follow=name --retry',
- for compatibility with FreeBSD and NetBSD versions of tail.
-
- * src/tail.c (usage): Describe new option.
- (parse_options): Accept it.
- Patch by Christian Kurz, via Herbert Xu.
-
- The command `echo foo|fmt -w N' for N>=32K would cause fmt to segfault.
-
- * src/fmt.c [struct Word]: Declare members length, space, and
- line_length to be of type `int', not short.
- (MAXCOST): Define using TYPE_MAXIMUM.
- Reported by Herbert Xu.
-
-2001-08-31 Jim Meyering
-
- * src/fmt.c (bool): Remove typedef, now that it's in system.h.
- (TRUE): Define to `true', not 1.
- (FALSE): Define to `false', not 0.
-
-2001-08-30 Paul Eggert
-
- * src/cat.c: Include full-write.h.
- (full_write): Remove decl; not needed.
- * src/split.c: Likewise.
-
- * src/cat.c (simple_cat, cat):
- Don't assume read and write size fits in int.
-
-2001-08-28 Jim Meyering
-
- * src/fmt.c (main): Correct the diagnostic for invalid argument to -w.
- (main): Diagnose an invalid, old-style width option.
-
-2001-08-27 Jim Meyering
-
- * Makefile.maint: Undo last change. Instead, simply remove `N_(',
- since the `Copyright ...' line should not be translated.
-
-2001-08-26 Jim Meyering
-
- * Makefile.maint (copyright-check): Update to reflect fact that
- the copyright year is now defined separately.
-
-2001-08-08 Charles Randall
-
- * src/sort.c (mergefps): Do not allocate at least sort_size
- bytes for each merge buffer. Instead, allocate at least
- sort_size bytes total.
-
-2001-08-25 Jim Meyering
-
- * tests/uniq/Test.pm: Re-enable some commented-out tests.
-
-2001-08-25 Paul Eggert
-
- * src/uniq.c (main): Fix a typo in the previous patch: missing
- a bounds check for examples like `uniq a b c'.
-
- * uniq.c (main): Fix some more incompatibilities with POSIX.2,
- (e.g. `uniq +3 --' did not work) by invoking getopt_long with
- leading '-', resembling what was done to 'sort' on 2001-03-20.
- Recognize an +N option only if it is an integer in range, and
- (if POSIXLY_CORRECT) only if a file name argument has not been seen;
- otherwise silently treat it as a file name.
-
- If the user specifies too many operands, output the first one
- in the error message, as a diagnostic aid.
-
-2001-08-24 Paul Eggert
-
- * src/uniq.c (main): Don't report an error when given the
- valid options `+3 -d'.
-
-2001-08-24 Paul Eggert
-
- * src/uniq.c (different): Don't assume that lengths can fit
- into size_t. Tune code for the common case where the line
- lengths differ: we avoid comparing them entirely in that case.
-
-2001-08-25 Jim Meyering
-
- * tests/uniq/Test.pm: Add tests for -s 0 and -w 0.
-
-2001-08-24 Paul Eggert
-
- Remove arbitrary restrictions on sizes, fixing a bug reported
- by Geoff Whale.
-
- * src/uniq.c (skip_fields, skip_chars, check_chars): Now size_t,
- not int.
- (size_opt): New function. Do not arbitrarily reject size zero.
- Change the wording of the error message slightly, for convenience.
- (find_field): Use size_t, not int, to compute sizes.
- (different, main): check_chars==0 is no longer a special case, as
- it defaults to SIZE_MAX.
- (main): Check for overflow with args like -234234234234234.
- Use 'size_opt' to convert optional arguments to sizes.
-
-2001-08-25 Jim Meyering
-
- * tests/uniq/Test.pm: Add new test, #54, for the just-fixed bug.
-
-2001-08-24 Paul Eggert
-
- * src/uniq.c (find_field): Don't count trailing newline to be
- part of the field. This disagrees with POSIX.2, but it's
- gotta be a bug in the standard. An interpretations request
- has been submitted to PASC.
- Reported by Geoff Whale.
-
-2001-08-18 Jim Meyering
-
- * Makefile.maint: Merge in changes from autoconf.
-
- * Makefile.maint ($(v_etc_file)): Define.
- (copyright-check): Use the new variable.
- (my-distcheck): Depend on local-check so those checks are once
- again run by `make distcheck'.
-
- * src/head.c (head_bytes): Read no more than the specified
- number of bytes. Patch by Ian Bruce.
-
- * tests/misc/head-c: New test for the above.
- * tests/misc/Makefile.am: New file.
- * tests/misc: New directory.
- * tests/Makefile.am (SUBDIRS): Add misc.
- * configure.in (AC_OUTPUT): Add tests/misc/Makefile.
-
-2001-08-14 Jim Meyering
-
- * src/Makefile.am (INCLUDES): Add -I../lib so sys2.h can include
- the new, generated file, unlocked-io.h.
-
-2001-08-13 Jim Meyering
-
- * src/cat.c (AUTHORS): Mark string for translation, since it
- contains the English word `and'.
- * src/comm.c: Likewise
- * src/csplit.c: Likewise
- * src/cut.c: Likewise
- * src/md5sum.c: Likewise
- * src/nl.c: Likewise
- * src/paste.c: Likewise
- * src/pr.c: Likewise
- * src/sort.c: Likewise
- * src/split.c: Likewise
- * src/sum.c: Likewise
- * src/tac.c: Likewise
- * src/uniq.c: Likewise
- * src/wc.c: Likewise
-
-2001-08-12 Jim Meyering
-
- * tests/mk-script ($program_name): Define.
- (main): Use $program_name, rather than long-inaccurate `build-script'.
- (main): Iterate over the sorted keys (rather than `while...each...'),
- so this script produces the same output regardless of which version
- of perl (e.g., perl5.6) is used.
-
-2001-08-04 Jim Meyering
-
- * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
-
- * man/Makefile.am (EXTRA_DIST): Remove duplicate definition.
-
-2001-07-08 Jim Meyering
-
- * src/tail.c (usage): Reformat so help2man generates a properly
- indented man page. Patch by Herbert Xu.
-
-2001-07-04 Jim Meyering
-
- * Makefile.cfg: New file with package-specific definitions.
- * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
-
-2001-07-01 Jim Meyering
-
- * src/sort.c (usage): Suggest setting LC_COLLATE=C, rather
- than LC_ALL=C.
-
-2001-06-10 Jim Meyering
-
- * tests/sort/Test.pm: Add a test based on a report from Herbert Xu.
-
-2001-05-20 Jim Meyering
-
- * src/uniq.c: Rename new option values: s/all/precede/ and
- s/minimum/separate/.
- * tests/uniq/Test.pm: Reflect the above renamings.
-
-2001-05-12 Bruno Haible
-
- * src/tail.c (parse_obsolescent_option): Accept a b suffix.
-
-2001-05-19 Jim Meyering
-
- msgmerge-0.10.37 complains about some `invalid multibyte sequences.'
- * po/el.po: Remove the offending entries.
- * po/ko.po: Likewise.
- * po/zh.po: Likewise.
-
-2001-05-19 Jim Meyering
-
- Support new modes for uniq's --all-repeated option.
- The default behavior is unchanged.
-
- * src/uniq.c: Include argmatch.h.
- (usage): Update.
- (check_file): Implement it.
- (main): Handle new, optional arguments.
- * tests/uniq/Test.pm: New tests for the above.
- Patch by Padraig Brady.
-
-2001-05-12 Bruno Haible
-
- * src/tail.c (parse_obsolescent_option): Use t_count_lines, not
- count_lines, in error message.
-
-2001-05-05 Jim Meyering
-
- * src/comm.c (usage): Correct description of -3.
- Reported by Soeren Sonnenburg.
-
-2001-04-22 Jim Meyering
-
- * Version 2.0.14.
-
- * configure: Regenerate using a patched copy of autoconf-2.49e to
- work around a bug in its test for a working memcmp function.
-
-2001-03-28 Paul Eggert
-
- * src/cksum.c: Fix bugs when computing length of large files.
- Add overflow and write error checks. Use uint_fast32_t, not
- unsigned long, to do checksum calculation, as C99 says
- uint_fast32_t should be no slower and might be faster.
-
- Include and "system.h" even if CRCTAB is defined,
- so that the code will compile if CRCTAB is defined.
- Include "human.h" if CRCTAB is not defined.
- (uint_fast32_t): Define if it appears that stdint.h didn't.
- (BIT, remainder, main, crctab): Use uint_fast32_t, not unsigned long,
- for checksums.
- (fill_r, remainder, main): Use ANSI prototypes.
- (fill_r, remainder, main): Omit duplicate code.
- (main): Use uintmax_t, not unsigned long, for file lengths.
- Use size_t, not long, for result of fread.
- Check for overflow when computing file lengths.
- Check for write error immediately after printing a line, so that
- we don't write to stdout indefinitely after an error.
-
-2001-04-14 Paul Eggert
-
- * src/sort.c (default_sort_size): Leave a 1/16 margin for RSS.
- Suggestion from Solar Designer.
-
-2001-04-14 Jim Meyering
-
- * src/wc.c (usage): Tweak --help output: s/line,/newline,/
-
-2001-04-13 Jim Meyering
-
- * src/sort.c (main): Add a comment justifying the use of
- `multi-character' rather than `multibyte' in a diagnostic.
- From Paul Eggert.
-
-2001-04-12 Paul Eggert
-
- * src/sort.c (RLIMIT_AS): Do not define; just use conditional
- code, since RLIMIT_RSS is similar (and is not standardized).
- (default_sort_size): Don't allocate more than the RSS limit,
- if this host has such a limit.
-
-2001-03-20 Paul Eggert
-
- * NEWS, doc/textutils.texi: sort now accepts long options and
- checks POSIX option syntax.
-
- * doc/textutils.texi: Document --, -, sort long options, and
- sort -o after files.
-
- * src/sort.c: Include .
- (usage, main): Add support for long options, and check option
- syntax as POSIX requires, though (as usual for GNU apps)
- options can follow file names unless POSIXLY_CORRECT is set.
- Many diagnostic revamped.
- (long_options): New constant.
- (badfieldspec): New arg MSGID. Mark as noreturn.
- (parse_field_count): New arg MSGID; if null, just return null on error.
- (new_key): Renamed from key_init. All callers changed. Now allocates
- the new key.
-
-2001-03-18 Jim Meyering
-
- * Version 2.0.13.
-
- * tests/Fetish.pm: If the $DJDIR envvar is defined, set SHELL
- to $DJDIR/bin/bash.exe. Patch from Richard Dawe, based on a
- suggestion from Eli Zaretskii.
-
-2001-03-17 Paul Eggert
-
- * src/sort.c, src/tail.c, src/uniq.c (usage):
- Warn that the +N form will be withdrawn.
- * doc/textutils.texi: Likewise.
-
-2001-03-08 Paul Eggert
-
- * NEWS, doc/textutils.texi: Document pr changes.
-
- * src/pr.c: Include mbswidth.h.
- (standard_header, header, test_suite): Remove.
- (date_format, date_text, file_text, header_width_available): New vars.
- (long_options, main, init_header, usage):
- Add new -D or --date-format option.
- (CHARS_FOR_DATE_AND_PAGE, T_BUF_FMT, T_BUF_SIZE, NO_DATE): Remove.
- (init_header): Allow arbitrary width for date format. Change
- "Page %5d" to "Page %d", since the code no longer assumes fixed width.
- Do not assume that localtime succeeds.
- (init_header, print_header, usage): Do not truncate headers.
- (init_header, print_header): Defer width calculations until
- page is printed, since "Page 100000" is wider than "Page 1".
- Count columns, not bytes, in page headers.
- Custom headers take up only the center, not the whole header.
- (print_header): Use printf rather than fprintf(stdout).
-
- * po/Makefile.in.in (install-data-yes): Install LC_TIME locale
- for all packages, not just for fileutils.
- (uninstall): Remove LC_TIME locale too.
-
- * src/sys2.h (INT_STRLEN_BOUND): New macro.
-
- * tests/pr/0F, tests/pr/0FF, tests/pr/2-S_f-t_notab,
- tests/pr/2-Sf-t_notab, tests/pr/2f-t_notab,
- tests/pr/2s_f-t_notab, tests/pr/2s_w60f-t_nota,
- tests/pr/2sf-t_notab, tests/pr/2sw60f-t_notab,
- tests/pr/2w60f-t_notab, tests/pr/3-0F, tests/pr/3-5l17f-t,
- tests/pr/3-FF, tests/pr/3a2l17-FF, tests/pr/3a3f-0F,
- tests/pr/3a3l15-t, tests/pr/3a3l8f-t, tests/pr/3b2l17-FF,
- tests/pr/3b3f-0F, tests/pr/3b3f-0FF, tests/pr/3b3f-FF,
- tests/pr/3b3l15-t, tests/pr/3b3l8f-t, tests/pr/3f-0F,
- tests/pr/3f-FF, tests/pr/3l17f-t, tests/pr/3l24-t,
- tests/pr/3ml17f-t, tests/pr/3ml24-FF, tests/pr/3ml24-t,
- tests/pr/3ml24-t-FF, tests/pr/4-7l24-FF, tests/pr/4l24-FF,
- tests/pr/a2l15-FF, tests/pr/a2l17-FF, tests/pr/a3-0F,
- tests/pr/a3f-0F, tests/pr/a3f-0FF, tests/pr/a3f-FF,
- tests/pr/a3l15-t, tests/pr/a3l17f-lm, tests/pr/a3l8f-t,
- tests/pr/b2l15-FF, tests/pr/b2l17-FF, tests/pr/b3-0F,
- tests/pr/b3f-0F, tests/pr/b3f-0FF, tests/pr/b3f-FF,
- tests/pr/b3l15-t, tests/pr/b3l17f-lm, tests/pr/b3l8f-t,
- tests/pr/FF, tests/pr/Ja3l17f-lm, tests/pr/Jb3l17f-lm,
- tests/pr/Jml17f-lm-lo, tests/pr/l17f-t, tests/pr/l24-FF,
- tests/pr/l24-t, tests/pr/ml17f-0F, tests/pr/ml17f-lm-lo,
- tests/pr/ml17f-t, tests/pr/ml17f-t-0F, tests/pr/ml20-FF-t,
- tests/pr/ml24-FF, tests/pr/ml24-t, tests/pr/ml24-t-FF,
- tests/pr/n+2-5l17f-0FF, tests/pr/n+2l17f-0FF,
- tests/pr/n+2l17f-bl, tests/pr/n+3-7l24-FF,
- tests/pr/n+3l17f-0FF, tests/pr/n+3l17f-bl,
- tests/pr/n+3ml13f-bl-FF, tests/pr/n+3ml17f-bl-tn,
- tests/pr/n+3ml17f-tn-bl, tests/pr/n+4-8a2l17-FF,
- tests/pr/n+4b2l10f-0FF, tests/pr/n+5-8b3l10f-FF,
- tests/pr/n+5a3l6f-0FF, tests/pr/n+6a2l17-FF,
- tests/pr/n+6b3l6f-FF, tests/pr/n+7l24-FF,
- tests/pr/n+8l20-FF, tests/pr/nJml17f-lmlmlo,
- tests/pr/nJml17f-lmlolm, tests/pr/nl17f-bl,
- tests/pr/nN1+3l17f-bl, tests/pr/nN15l17f-bl,
- tests/pr/nSml13-bl-FF, tests/pr/nSml13-t-t-FF,
- tests/pr/nSml13-t-tFFFF, tests/pr/nSml17-bl-FF,
- tests/pr/nSml17-t-t-FF, tests/pr/nSml17-t-tFFFF,
- tests/pr/o3a3l17f-tn, tests/pr/o3a3Sl17f-tn,
- tests/pr/o3a3Snl17f-tn, tests/pr/o3b3l17f-tn,
- tests/pr/o3b3Sl17f-tn, tests/pr/o3b3Snl17f-tn,
- tests/pr/o3Jml17f-lm-lo, tests/pr/o3ml17f-bl-tn,
- tests/pr/o3mSl17f-bl-tn, tests/pr/o3mSnl17fbltn,
- tests/pr/Test.pm, tests/pr/W-72l17f-ll, tests/pr/W20l17f-ll,
- tests/pr/W26l17f-ll, tests/pr/W27l17f-ll,
- tests/pr/W28l17f-ll, tests/pr/W35a3l17f-lm,
- tests/pr/W35b3l17f-lm, tests/pr/W35Ja3l17f-lm,
- tests/pr/W35Jb3l17f-lm, tests/pr/W35Jml17f-lmlo,
- tests/pr/W35ml17f-lm-lo, tests/pr/W72Jl17f-ll,
- tests/pr/w72l17f-ll:
- Adjust to minor spacing changes in pr headers.
-
-2001-03-11 Paul Eggert
-
- * src/sort.c (die): New message arg, to describe failures
- better. All callers changed.
-
-2001-03-11 Paul Eggert
-
- * src/sort.c: Decrease buffer size when only merging or checking.
- (sort_size): Now the user-specified sort size.
- (MIN_MERGE_BUFFER_SIZE): New macro.
- (MIN_SORT_SIZE): Use it.
- (merge_buffer_size): New variable.
- (fillbuf): Increase merge_buffer_size if a longer line is encountered.
- (checkfp, mergefps): Do not allocate a buffer smaller than
- merge_buffer_size.
- (sort): Use the default_sort_size if sort_size is zero.
- (main): Do not set sort_size to default_sort_size.
-
-2001-03-06 Paul Eggert
-
- * src/sort.c (sort): If all the input files are empty, create
- an empty output file.
- * tests/sort/Test.pm: Test for this.
-
-2001-03-13 Jim Meyering
-
- * src/sort.c (merge): Move declarations of local variables into
- the inner scope where they're used.
- (sort): Likewise.
-
-2001-03-06 Paul Eggert
-
- Avoid the need for a copy of the input file when the input and
- output overlap, e.g. 'sort F -o F'. With -m, though, a copy
- is still needed sometimes.
-
- * doc/textutils.texi: 'sort F -o F' no longer needs to copy F.
-
- * src/sort.c: Do not include closeout.h.
- (xfopen): Use stdout if *how != 'r'.
- (mergefps): Remove FPS arg.
- Open all input files, and close all files when done.
- If OFP is null, open the output file (but after opening input files).
- All callers changed.
- (first_same_file): New function.
- (sort, merge): Remove arg OFP; we now open the output file as needed.
- All callers changed.
- (merge): New arg MAX_MERGE. All callers changed.
- (sort): For "sort F -o F", close the input before opening the output.
- (main): Do not use close_stdout; 'sort' and 'merge' now close stdout.
- (This also fixes a close-stdout-twice bug.)
- Remove test for overlapping input and output files, as 'sort' no longer
- needs to worry about overlap, and 'merge' checks for overlap itself.
- Use first_same_file to inform 'merge' about how much to merge at
- the top level, to avoid overlap.
-
-2001-03-12 Jim Meyering
-
- `fmt --prefix=S' would not work properly for any string S containing
- a byte with the high bit set.
- * src/fmt.c (prefix): Declare to be of type unsigned char, not `char'.
- (get_prefix): Likewise for local, `p'.
- Reported by François Pinard.
-
- Add a test for the above-fixed problem.
- * tests/fmt: New directory/files.
- * configure.in (AC_OUTPUT): Add tests/fmt/Makefile.
- * tests/Makefile.am (SUBDIRS): Add fmt.
-
-2001-03-05 Andreas Schwab
-
- * src/tac.c (save_stdin): Use mkstemp to create temporary file.
-
-2001-03-09 Jim Meyering
-
- * Makefile.maint (my_distdir): Define new variable, and use this
- in place of most old uses of $(distdir).
-
- * tests/help-version: Ensure that /dev/full is a character device
- (using test -c) as well as being writable, before trying to write to it.
- Otherwise, the test could mistakenly append a newline to an existing,
- regular, writable, /dev/full file.
- Suggested by Ulrich Drepper.
-
-2001-03-08 Jim Meyering
-
- * tests/sha1sum/sample-vec: Insert the `--text' argument for each test.
- Reported by Matthew Smith.
-
-2001-03-04 Jim Meyering
-
- * Makefile.maint (my_distdir): Define.
- Use it in place of $(distdir) almost everywhere.
-
- * Version 2.0.12.
-
- * Makefile.maint (alpha): Use $(PACKAGE)-$(VERSION), not $(distdir),
- since the latter now has a `$(top_distdir)/' prefix.
-
-2001-03-01 Paul Eggert
-
- * src/sort.c (die): New function.
- (create_temp_file, xfopen, xfclose, write_bytes, sort_buffer_size,
- fillbuf, main): Use it to regularize error messages. The only change
- in behavior is that write_bytes and the final close used to say "write
- error" but now give just the output file name, which should be enough.
-
-2001-03-01 Paul Eggert
-
- * src/sort.c (xfclose): Add FILE arg, and report the file name
- on error. All callers changed.
-
-2001-03-01 Paul Eggert
-
- * src/sort.c (main): When fclose (stdin) fails, do not mention
- the output file in the error message; mention "-" instead.
-
-2001-02-28 Paul Eggert
-
- * src/sort.c (xfopen): Set have_read_stdin to 1 only if file is "-".
- Use fopen_safer, not fopen, to avoid subtle bugs when fopen returns
- stdin, stdout, or stderr.
- (xfclose): stdout is no longer a special case.
- (main): Close output file, don't just flush it; there might be
- an error on the close.
-
-2001-02-27 Paul Eggert
-
- * src/sort.c (initbuf): If the desired size cannot be
- allocated, repeatedly halve it until allocation succeeds.
- Reported by Solar Designer.
-
-2001-02-26 Paul Eggert
-
- * src/sort.c (parse_field_count): Comment fix.
-
-2001-02-25 Paul Eggert
-
- * src/sort.c: Tune allocation and comparison of nodes
- representing temp files. This improved CPU performance of
- 'sort -S 1 *.[ch]' by 17% on my host.
-
- (struct tempnode): name member now uses struct hack.
- (temphead): Now a pointer, not a structure. All uses changed.
- (create_temp_file): Allocate node using struct hack.
- (zaptemp): Free node using struct hack. Use pointer comparison, not
- string comparison.
-
-2001-02-25 Paul Eggert
-
- * src/sort.c (eolchar, trim_trailing_blanks): Now static.
-
-2001-02-25 Paul Eggert
-
- 'sort' race condition fixes.
-
- Defend against a DoS attack where someone else creates a
- temporary file with the same name as ours. Use mkstemp to do
- this, supplying our own mkstemp if the system doesn't have one.
-
- Also, fix a race condition during cleanup on hosts without
- sigaction.
-
- * src/sort.c (NAME_MAX_IN_DIR): Remove.
- (sigprocmask, sigset_t): New macros, defined only on older hosts.
- (caught_signals): New var.
- (xtmpfopen, tempname): Removed.
- (create_temp_file): New function, combining the functions of the old
- xtmpfopen and tempname. All callers changed.
- Use mkstemp to create the file.
- (sighandler): On hosts without sigaction, ignore signals while
- cleaning up, instead of letting them interrupt cleanup.
- (main): Initialize caught_signals. On hosts with sigaction, block all
- caught signals while handling one. Remove duplicate code.
-
-2001-02-22 Jim Meyering
-
- * src/sort.c (keycompare): Move declarations of locals, lena and lenb,
- into the inner scope where they are used.
-
-2001-02-19 Jim Meyering
-
- * src/sort.c (AUTHORS): Add Paul Eggert.
-
- * src/wc.c (wc): Rename innermost `buf' to avoid shadowing warning.
- (wc): Rename local `wc' to avoid shadowing function name.
-
-2001-02-18 Paul Eggert
-
- Fix a race condition: freed storage accessed during a signal handler.
-
- * src/sort.c (struct tempnode.next): Now volatile.
- (zaptemp): Free the file name after removing it from the temp list,
- not before, because a signal can arrive between the two actions
- and cleanup () traverses the list.
-
-2001-02-18 Paul Eggert
-
- Check for input size, and do not overallocate memory.
- Also check for memory quotas.
-
- Revamp storage management so that line tables and character data are
- taken from the same buffer. Line tables are now in reverse order,
- since they grow down while the character data grow up.
-
- * src/sort.c:
- (): Include if HAVE_SYS_RESOURCE_H.
- (struct rlimit, getrlimit): Define a replacement if RLIMIT_DATA
- is not defined.
- (RLIMIT_AS): Define to RLIMIT_DATA if not defined.
- (struct lines): Remove.
- (struct buffer): New members nlines, line_bytes, eof.
- Remove member newline_free; no longer needed, since the code no longer
- runs out of line table space.
- (SORTALLOC_MIN, SORTALLOC_DEFAULT_MIN): Remove.
- (sort_size): Renamed from sortalloc; now applies to the sum of the
- character data and the line table, not just the character data.
- (MIN_SORT_SIZE, INPUT_FILE_SIZE_GUESS): New macros.
- (linelength): remove.
- (specify_sort_size): Don't worry about the distinction between the
- character data and the line table; that is now the caller's
- responsibility.
- (default_sort_size): Return the value, instead of being executed for
- side effect. Return half of available memory, or 1/16 of total memory,
- whichever is greater; except do not exceed 1/2 of quota.
- (sort_buffer_size): New function.
- (initbuf): New arg LINE_BYTES. Ensure that the line array is properly
- aligned. Initialize the new set of struct buffer members.
- (buffer_linelim): New function.
- (fillbuf): Return int, not size_t, since the callers merely care
- whether the result is nonzero. New arg FILE so that error messages
- can report the file name. Keep track of eof. Initialize the line
- table too, taking its memory from the input buffer's memory; this
- subsumes the old findlines function and removes the need for worrying
- about running out of line table entries.
- (checkfp, mergefps, sortlines, merge, sort): Adjust to the new storage
- management regime, in particular the fact that line tables are now
- filled in by fillbuf and are in reverse order.
- (checkfp): Now takes char *, not const char *, since subroutines
- require that now. Rewrite to avoid lint and duplicate code.
- If line length alloc calculation overflows,
- simply allocate enough memory to hold the line.
- (mergefps): New arg FILES, used for buffer size calculation and error
- messages. Rewrite to avoid lint. Do not loop if savealloc*2
- overflows.
- (mergefps, merge): Zap temporary files eagerly rather than lazily;
- this is needed because we now pass FILES to mergefps.
- (sortlines): Args now point at end of arrays, not at beginnings.
- (sort): Do not allocate temporary line array for sortlines;
- instead, take the space from the same buffer.
- (main): Adjust to sort_size and default_sort_size changes.
-
-2001-02-18 Jim Meyering
-
- Rename test input files to avoid conflicts on case-insensitive
- file systems.
- * tests/pr/2-Sf-t_notab: Rename from 2Sf-t_notab.
- * tests/pr/2-S_f-t_notab: Rename from 2S_f-t_notab.
- * tests/pr/W-72l17f-ll: Rename from W72l17f-ll.
- * tests/pr/Test.pm: Update file names to reflect renamings.
- Reported by Matthew Smith.
-
-2001-01-20 Jim Meyering
-
- * configure.in: Remove jm_CHECK_ALL_TYPES.
- Now it's invoked by jm_MACROS.
-
-2001-01-17 Jim Meyering
-
- * src/cksum.c (main): Use PACKAGE, not GNU_PACKAGE.
- * src/tsort.c (main): Likewise.
- * src/sort.c (main): Likewise.
- (usage): Convert each TAB in --help output to a sequence of 8 spaces.
-
-2001-01-07 Jim Meyering
-
- * src/tail.c (usage): Split a string that was longer than 2048 bytes.
-
-2001-01-03 Jim Meyering
-
- * src/sort.c (main): Remove embedded \n from diagnostic.
-
-2001-01-02 Jim Meyering
-
- * src/od.c (ulonglong_t): Define place-holder type to avoid some #if
- directives.
- (LONGEST_INTEGRAL_TYPE): Remove definition.
- (MAX_INTEGRAL_TYPE_SIZE): Use ulonglong_t instead of
- LONGEST_INTEGRAL_TYPE.
- (print_long_long): Compile this function even on systems without
- long long support.
- (decode_one_format): Remove #if directive.
-
- * src/od.c (decode_one_format): Guard use of print_long_long with
- `#if HAVE_UNSIGNED_LONG_LONG'. From Darren Salt.
- Change all `#ifdef HAVE_UNSIGNED_LONG_LONG' to use `#if' instead.
-
-2000-12-23 Jim Meyering
-
- * src/sys2.h [HAVE_INTTYPES_H]: Include .
-
-2000-12-19 Jim Meyering
-
- * Version 2.0.11.
-
-2000-12-18 Paul Eggert
-
- * NEWS, doc/textutils.texi: New "sort" option -S SIZE.
-
- * src/sys2.h (UINTMAX_MAX): New macro, taken from C99.
-
- * src/sort.c: Include physmem.h.
- (SORTALLOC, mergealloc, LINEALLOC): Remove.
- (sortalloc): Default to zero at program startup.
- (SORTALLOC_MIN, SORTALLOC_DEFAULT_MIN): New macros.
- (usage, main): Add support for new -S SIZE option.
- (specify_sort_size, default_sort_size): New functions.
- (initlines): Do not let alloc exceed limit.
- (findlines): Likewise.
- (checkfp, mergefps, sort): Use sortalloc to size everything
- else, instead of relying on precomputed sizes.
-
-2000-12-17 Jim Meyering
-
- * doc/texinfo.tex: Update from master repository.
- * config.sub: Likewise.
- * config.guess: Likewise.
-
-2000-12-11 Jim Meyering
-
- * Version 2.0.10.
-
-2000-12-07 Jim Meyering
-
- * src/od.c (address_base): Declare to be static.
-
-2000-12-06 Paul Eggert
-
- * src/od.c (address_base, address_pad_len): New var.
- (output_address_fmt_string, address_fmt_buffer, address_pad): Remove.
- (flag_pseudo_start): Now int, not long int.
- (pseudo_offset): Now off_t, not long int.
- (n_specs, n_specs_allocated): Now size_t, not unsigned int.
- (format_address, format_address_none, format_address_std,
- format_address_label): Now accepts an extra char argument (an extra
- char to print if nonzero), and prints instead of returning a string.
- All callers changed.
- (bytes_per_block): Now size_t, not int.
- (format_address_none): Do not even print the extra char argument.
- This simplifies the callers.
- (format_address_std, format_address_label): Print off_t ourself
- instead of trying to use autoconfigured format. This is faster and
- more portable.
- (format_address_paren): New function.
- (dump): Remove unnecessary cast.
- (expand_address_fmt): Remove.
- (main): Use size_t, off_t, etc. instead of builtin types where this is
- advisable. Adjust to above changes. Remove unnecessary cast.
-
-2000-12-03 Jim Meyering
-
- * src/tail.c (tail_file): Initialize ignore, dev, and ino members,
- when tailing forever and the open failed. Otherwise, we could get
- uninitialized memory references of those fields in recheck.
- * tests/tail-2/Makefile.am (TESTS): Add assert-2.
- * tests/tail-2/assert-2: New file.
-
- * Version 2.0.9.
-
- Make od print valid addresses for offsets of 2^32 and larger, and
- allow byte offset (-j) and byte count (-N) to be 2^32 and larger.
-
- * src/od.c (MAX_ADDRESS_LENGTH): Don't hard-code as a literal.
- Rather, define in terms of the type, off_t.
- (string_min): Declare to be of type size_t.
- (flag_dump_strings): Declare to be of type int.
- (print_s_char): Declare the n_bytes parameter and the local, `i',
- to be of type off_t.
- (print_char): Likewise.
- (print_s_short): Likewise.
- (print_short): Likewise.
- (print_int): Likewise.
- (print_long): Likewise.
- (print_long_long): Likewise.
- (print_float): Likewise.
- (print_double): Likewise.
- (print_long_double): Likewise.
- (dump_hexl_mode_trailer): Likewise.
- (print_named_ascii): Likewise.
- (print_ascii): Likewise.
- (write_block): Likewise.
- (print_ascii): Declare local, `print_function' with a prototype.
- Change a few `>' comparisons to the equivalent `<' form.
- (parse_options): Declare `tmp' to be of type uintmax_t.
- Use xstrtoumax, not xstrtoul.
- Fail if the specified offset if larger than OFF_T_MAX.
- (dump_strings): Declare local `i' to be of type size_t.
- Remove the now-unnecessary cast-to-off_t.
- (main) [IF_LINT]: Initialize desired_width to avoid a warning.
- Declare `tmp' to be of type uintmax_t.
- Use xstrtoumax, not xstrtoul.
- Fail if minimum string length is larger than SIZE_MAX.
- Fail if specified width is larger than ULONG_MAX.
-
- * src/od.c (format_address): Use off_t, not long unsigned_int as the
- parameter type.
- (format_address_none): Likewise. Mark parameter as unused.
- (format_address_std): Likewise.
- (format_address_label): Likewise.
- (print_ascii): Mark format string parameter as unused.
- (write_block): Use off_t, not long unsigned_int as offset type.
- (expand_address_fmt): New function.
- (main): Use it to expand each address format string template.
- Reported by Mark Nudelman, via Andreas Jaeger.
-
- * src/sys2.h (OFF_T_MIN): Define here instead.
- (OFF_T_MAX): Likewise.
- (CHAR_BIT): Define.
-
- * src/tail.c (parse_options): Use xstrtoumax to parse the byte and line
- offset. Give a better diagnostic when the requested offset is still
- representable but larger than OFF_T_MAX.
- (OFF_T_MIN): Remove definition.
- (OFF_T_MAX): Likewise.
-
-2000-12-02 Jim Meyering
-
- * src/sort.c (checkfp): Rename local `buf' to avoid shadowing previous
- declaration.
-
- * src/sort.c (NONZERO): Define and use it to make the code a tiny
- bit more readable.
-
- * doc/textutils.texi (sort invocation): Clarify how -t works
- when a sort key specifies a range of fields. From Karl O. Pinc.
-
-2000-11-26 Paul Eggert
-
- * src/od.c (skip): Use lseek instead of worrying about fseeko or fseek.
- This should be portable, as we seek before doing any I/O.
- (fseeko): Remove; no longer used.
-
-2000-11-30 Jim Meyering
-
- * src/sort.c: s/SIZE_T_MAX/SIZE_MAX/.
-
-2000-11-30 Paul Eggert
-
- * src/sys2.h: Include if HAVE_STDINT_H.
- (SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX.
- All uses changed.
-
-2000-11-30 Jim Meyering
-
- * src/sort.c: SIZE_MAX is not defined, so s/SIZE_MAX/SIZE_T_MAX/, and...
- * src/sys2.h (SIZE_T_MAX): ... define.
-
-2000-11-29 Paul Eggert
-
- Port GNU "sort" to hosts where sizes don't fit in "int",
- e.g. 64-bit Solaris (sparc).
-
- * src/sort.c ("human.h", "xstrtol.h"): Include.
- (struct line): length member is now size_t, not int.
- (struct lines): Likewise for used, alloc, limit members.
- (struct buffer): Likewise for used, alloc, left, newline_free members.
- (struct keyfield): Likewise for sword, schar, eword, echar members.
- (sortalloc, mergealloc, linelength): Now size_t, not int.
-
- (initbuf, fillbuf, initlines, begfield, limfield, findlines,
- numcompare, getmonth, keycompare, compare, checkfp, mergefps,
- sortlines, sort): Accept, return, and use size_t for sizes, not int.
-
- (fillbuf, initlines, findlines, checkfp, sort): Check for overflow
- when computing buffer sizes.
-
- (begfield, limfield): Do not index past end of array.
-
- (checkfp): Return a boolean, not a line number, as the line
- number may not fit in int. All callers changed. Use
- uintmax_t for line numbers, not int.
-
- (sort): Don't allocate tmp until we need it (and know the right size).
-
- (parse_field_count): New function.
-
- (main): Use it to check for overflow in field counts.
- "outfile" is now a pointer to const.
-
-2000-11-27 Jim Meyering
-
- * src/checksum.h: Don't include system.h here.
- * src/md5.c: Include config.h, stdio.h, sys/types.h. and system.h here
- instead.
- * src/sha1sum.c: Likewise.
-
-2000-11-18 Paul Eggert
-
- * src/pr.c (main): Do not assume EOF == -1.
- Handle the case correctly when digits options immediately precede a
- non-option.
-
-2000-11-18 Jim Meyering
-
- * doc/textutils.texi: Change GNU to @sc{gnu} in many places.
- Update to use the Free Documentation Licence.
-
- * configure, config.h.in, Makefile.in, etc.: Regenerate using the
- very latest version (in CVS) of autoconf.
-
-2000-11-17 Jim Meyering
-
- * GNUmakefile (.NOTPARALLEL): New target. Prevent unwanted parallelism.
- Suggestion from Ulrich Drepper.
-
-2000-11-16 John David Anglin
-
- * tsort.c: Include sys/types.h before system.h.
-
-2000-11-16 Jim Meyering
-
- * src/join.c: Declare global `tab' to be of type *unsigned* char,
- so join works with 8-bit delimiter characters.
- Reported by Antonio Rendas.
- * tests/join/Test.pm (8-bit-t): New test for the above fix.
-
-2000-11-13 Paul Eggert
-
- * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
- be tested with #ifdef, not with #if.
-
-2000-11-11 Jim Meyering
-
- * doc/textutils.texi: More minor rewording and grammar correction.
- From Brian Youmans.
-
-2000-11-06 Paul Eggert
-
- * src/od.c (skip): st_size is not defined for directories.
-
-2000-11-03 Jim Meyering
-
- * tests/sha1sum/sample-vec: New file, with tests derived from
- http://csrc.nist.gov/cryptval/shs/sha1-vectors.zip
- * tests/sha1sum/Makefile.am (TESTS): Add sample-vec.
-
-2000-10-30 Jim Meyering
-
- * configure, config.h.in, Makefile.in, etc.: Regenerate using the
- very latest version (in CVS) of autoconf.
-
- * src/wc.c: Include "system.h" after wctype.h (not before)
- to avoid a compilation error on Solaris 5.5.1 systems.
- Reported by Vin Shelton.
-
-2000-10-23 Jim Meyering
-
- * Makefile.maint: Clean up version-related variables.
-
- * Version 2.0.8.
-
- * Makefile.am (EXTRA_DIST): Add .prev-version.
-
-2000-10-22 Jim Meyering
-
- * tests/Makefile.am (SUBDIRS): Add sha1sum.
- * tests/sha1sum/basic-1: New file.
- * configure.in (AC_OUTPUT): Add tests/sha1sum/Makefile.
-
- * src/Makefile.am (bin_PROGRAMS): Add sha1sum.
- (md5sum_SOURCES): Define.
- (sha1sum_SOURCES): Define.
- (noinst_HEADERS): Add checksum.h.
-
- * src/md5sum.c: Factor out the differences between MD5 and SHA1,
- and parameterize so this code may be used by both md5sum and the new
- program, sha1sum. Loosely based on a patch from Scott Miller.
- * src/checksum.h: New file.
- * src/md5.c: New file that simply defines `algorithm'.
- * src/sha1sum.c: Likewise.
-
- * man/Makefile.am (man_MANS): Add sha1sum.1.
- * man/sha1sum.x: New file.
-
- Support 8-byte integers, assuming they're printable with e.g., %lld.
- * src/od.c: Add support for printing data as unsigned
- long long integers.
-
-2000-10-21 Jim Meyering
-
- The command, `yes ''|./cat -n' would stop printing after INT_MAX lines.
- * src/cat.c (cat): Never let `newlines' exceed 3.
-
-2000-10-21 Jim Meyering
-
- Prevent a counter buffer overrun when numbering lines and when
- processing 100 billion lines (or more) of input.
- * src/cat.c (LINE_COUNTER_BUF_LEN): Define to allow numbering as
- many as 10^18 - 1 lines (the old limit was 10^11 - 1, and could
- be exceeded without too much trouble). Use this symbol rather
- than hard-coding the constant everywhere.
- (next_line_num): Rather than overrunning for input with more lines,
- mark the line number by putting a `>' in the leftmost slot.
- Patch by Jan Nieuwenhuizen.
-
- * src/sort.c (SORT_OUT_OF_ORDER): Define.
- (main): Use it instead of hard-coding the `1'.
-
-2000-10-10 Jim Meyering
-
- * src/sort.c (main): Use EXIT_SUCCESS rather than 0.
- Fail when checking (-c) with more than one file argument,
- rather than simply ignoring the extra arguments.
-
-2000-09-07 Jim Meyering
-
- * src/cut.c: Remove obsolete comment block.
- (usage): Note that when using -f, lines with no delimiters are
- also printed.
- * doc/textutils.texi (cut invocation): Likewise.
-
-2000-08-23 Jim Meyering
-
- * src/md5sum.c: Include unconditionally, to be consistent
- with all the other programs in this directory.
- * src/tsort.c: Likewise.
-
-2000-08-19 Jim Meyering
-
- * src/comm.c (writeline): Correct comments. From Bruno Haible.
-
-2000-08-11 Paul Eggert
-
- * doc/textutils.texi:
-
- Portable shell scripts should specify global options before
- key fields.
-
- Move global LC_CTYPE remark to each sort option that depends
- on LC_CTYPE.
-
- sort -g depends on LC_NUMERIC.
-
- Add @vindex where it's missing.
-
- "radix character" -> "decimal-point character", to match Standard C
- terminology, which is easier for most people to follow.
-
- "comm" does not consider trailing newlines to be significant.
-
-2000-08-10 Paul Eggert
-
- * doc/textutils.texi: Recommend against the System V syntax
- for tr ranges, and don't use it in examples. Use POSIX
- classes rather than ranges, for portability.
- * src/tr.c (usage): Don't describe System V syntax, as it
- doesn't always work.
-
- * src/sort.c (usage): Describe -d and -i in a locale-independent way.
-
- * doc/Makefile.am (constants.texi): Use the C locale so that
- [A-Z] works as expected.
-
-2000-08-07 Paul Eggert
-
- * src/cut.c (cut_fields): Invoke xalloc_die instead of printing
- our own message.
- (cut_fields): Check for I/O error as well as end-of-file
-
-2000-08-06 Bruno Haible
-
- * src/wc.c: Add support for multi-byte locales.
- (iswprint, mbrtowc, wcwidth): Provide default definitions.
- (total_bytes): New variable.
- (print_bytes): New variable.
- (longopts): Change abbreviation for --chars from 'c' to 'm'.
- (usage): Update.
- (write_counts): Add `bytes' argument.
- (wc): New variables `bytes', `count_bytes', `count_chars',
- `count_complicated'. The old code determines `bytes', not `chars'.
- New case for MB_CUR_MAX > 1. A non-printable non-space character does
- not increment the line position or start a word. Update `total_bytes'.
- (main): Initialize `print_bytes' and `total_bytes' to 0. Accept 'm'
- option. Pass `total_bytes' to write_counts.
- * doc/textutils.texi (wc invocation): Update accordingly.
-
-2000-08-06 Bruno Haible
-
- * src/head.c (head): Call write_header here.
- (head_file): ... not here.
-
- * src/cat.c (closeout_func): Remove variable.
- (close_stdout_wrapper): Remove unused function.
- (main): Remove assignment to closeout_func.
-
- * src/fold.c (fold_file): Remove ferror(stdout) check, already done
- in close_stdout.
-
-2000-08-06 Paul Eggert
-
- * src/sort.c (usage): Warn more succinctly about the effects of
- the locale on sort order.
-
-2000-08-06 Jim Meyering
-
- * Version 2.0g.
-
- * src/tail.c (pipe_lines): Declare local `cp' to be const.
-
-2000-08-04 Greg McGary
-
- * src/tail.c (pipe_lines): Add variable `nbytes' so we can free
- `tmp' immediately after read loop. Don't process an empty file.
- [This fixes a buffer-underrun error -- detected thanks to
- bounded pointers -jmm]
-
-2000-08-05 Jim Meyering
-
- Fix buffer-overrun error.
- * src/pr.c (init_header): Allocated buffer was sometimes too small.
- Reported by Greg McGary (who found this bug using his
- bounded-pointers-enabled gcc).
- (init_header): Move declarations of several variables into the
- inner scope where they are used.
- * tests/pr/Test.pm (narrow-1): New test, for the above.
-
- * src/csplit.c (MAX): Remove definition (It's in sys2.h).
-
-2000-08-04 Jim Meyering
-
- * src/sort.c (main): Rename local `t' to `tmp_dir' to avoid shadowing
- a previous local by that name.
- (usage): Warn that GNU sort is now locale-aware, and suggest
- people put LC_ALL=POSIX in their environment.
-
- * src/pr.c (store_columns): Remove conjunct that would dereference
- an out-of-bounds pointer. Reported by Greg McGary (who found this
- bug using his bounded-pointers-enabled gcc).
-
-2000-08-03 Jim Meyering
-
- * tests/Makefile.am.in ($(srcdir)/$x-tests): Use -I$(srcdir), not `-I.'.
- (Makefile.am): Likewise. Reported by Greg McGary.
-
-2000-08-01 Jim Meyering
-
- * doc/textutils.texi (tr invocation): Note that ranges are not portable.
- Update examples not to use ranges.
-
-2000-07-31 Jim Meyering
-
- * src/cut.c (cut_fields): Use `virtual memory exhausted',
- not `Memory exhausted'.
-
-2000-07-30 Jim Meyering
-
- * src/help-version: Remove file. Move it to ...
- * tests/help-version: ...here
- * tests/Makefile.am (TESTS): Set to help-version.
- (TESTS_ENVIRONMENT): Define.
- (EXTRA_DIST): Add $(TESTS).
- * src/Makefile.am (EXTRA_DIST): Remove help-version.
- (TESTS): Remove definition.
- (TESTS_ENVIRONMENT): Remove definition.
-
-2000-07-28 Paul Eggert
-
- sort's -T option can now appear multiple times.
- Thanks to Charles Randall for suggesting this idea.
-
- * doc/textutils.texi, NEWS: Document this.
-
- * src/sort.c (temp_dir): Remove.
- (temp_dirs, temp_dir_count, temp_dir_alloc): New vars.
- (process_id): New var.
- (usage): Describe new use of -T.
- (add_temp_dir): New function.
- (tempname): Use new temp_dirs array.
- Do not discard information from the process-id or sequence
- number, unless we have short file names.
- (sighandle): Use process_id instead of getpid.
- (main): Initialize process_id.
- Add support for the new use of -T.
-
-2000-07-23 Jim Meyering
-
- * tests/head/Test.pm: Rename tests (and hence files) to have a short
- enough prefix so that they're not truncated on 8+3 file systems.
- Reported by Eli Zaretskii.
-
-2000-07-09 Jim Meyering
-
- * config.guess: Update from FSF.
- * config.sub: Likewise.
-
-2000-07-02 Jim Meyering
-
- * Version 2.0f.
-
-2000-07-01 Jim Meyering
-
- * src/cut.c: Change type of global, field_1_bufsize, from int to size_t.
-
-2000-06-29 Jim Meyering
-
- * src/tr.c (find_bracketed_repeat): Add a cast to suppress a warning.
- Reported by Gerhard Poul.
-
- * src/tail.c (enum): Remove comma from end of enumerator list.
- From Gerhard Poul.
-
-2000-06-25 Jim Meyering
-
- * configure.in (ALL_LINGUAS): Add Danish (da).
-
-2000-06-24 Jim Meyering
-
- * doc/textutils.texi: Lots of minor rewording and grammar correction.
- From Brian Youmans.
-
- * tests/sum/basic-1: New file.
- * tests/sum/Makefile.am: New file.
- * configure.in (AC_OUTPUT): Add tests/md5sum/Makefile.
- * tests/Makefile.am (SUBDIRS): Add sum.
-
-2000-06-22 Bruno Haible
-
- * src/sum.c (sysv_sum_file): Avoid overflowing 32-bit accumulator
- on files whose bytes sum to 2^32 or larger. The smallest such file
- contains 16,843,010 bytes, nearly all of which have the value 0xff.
-
-2000-06-22 Bruno Haible
-
- * src/cat.c (main): Correct a comment.
-
-2000-06-21 Jim Meyering
-
- * src/cut.c (getstr): Remove private (and out of date) version of
- this function.
- (cut_fields): Adjust caller to use the just-extended one in ../lib.
- Reported by Paul Sauer.
-
-2000-06-20 Jim Meyering
-
- * src/uniq.c (main): Fix off-by-argc test, so +N-style options are
- recognized once again. Reported by Geoff Keunning.
- Fix typo in diagnostic: s/compare/skip/.
-
-2000-05-27 Jim Meyering
-
- * src/tail.c: Arrange to call close_stdout upon exit.
- Don't close stdout explicitly.
- (usage): Add missing backslash at end of line.
- (write_header): Remove now-unused COMMENT parameter.
- Update all callers.
-
-2000-05-24 Jim Meyering
-
- * src/head.c (head_file): Use STDIN_FILENO in place of `0'.
- (main): Likewise.
-
-2000-05-20 Jim Meyering
-
- * src/cat.c: Arrange to call close_stdout upon exit.
- Don't close stdout explicitly. Replace uses of global constant,
- output_desc, with uses of STDOUT_FILENO.
-
- Arrange to call close_stdout upon exit. Don't close stdout explicitly.
- * src/cksum.c: Likewise.
- * src/comm.c: Likewise.
- * src/csplit.c: Likewise.
- * src/cut.c: Likewise.
- * src/expand.c: Likewise.
- * src/fmt.c: Likewise.
- * src/fold.c: Likewise.
- * src/head.c: Likewise.
- * src/join.c: Likewise.
- * src/md5sum.c: Likewise.
- * src/nl.c: Likewise.
- * src/od.c: Likewise.
- * src/paste.c: Likewise.
- * src/pr.c: Likewise.
- * src/ptx.c: Likewise.
- * src/sort.c: Likewise. (but set exit status and file name, too)
- * src/split.c: Likewise.
- * src/sum.c: Likewise.
- * src/tac.c: Likewise.
- * src/tr.c: Likewise.
- * src/tsort.c: Likewise.
- * src/unexpand.c: Likewise.
- * src/uniq.c: Likewise.
- * src/wc.c:: Likewise.
-
-2000-05-13 Jim Meyering
-
- * src/help-version: Run each program successfully at least once.
-
-2000-05-12 Jim Meyering
-
- * src/head.c (string_to_integer): Restrict base to 10.
- Reported by Joseph S. Myers.
- * tests/head/Test.pm: Add a few tests for this.
-
- New option: --first-only
- * src/unexpand.c (anonymous enum) [CONVERT_FIRST_ONLY_OPTION]: Define.
- (long_options): Add `first-only'.
- (main): Handle new option.
-
-2000-05-11 Jim Meyering
-
- * tests/unexpand/basic-1: New tests.
-
-2000-04-17 Bruno Haible
-
- * src/system.h [__BEOS__]: Ignore O_BINARY and O_TEXT.
-
-2000-04-16 Jim Meyering
-
- * src/tail.c: Prepare to remove option: --max-consecutive-size-changes.
- Doesn't seem useful.
- (usage): Remove description.
- * doc/textutils.texi (tail invocation): Remove description.
-
-2000-04-12 Jim Meyering
-
- * src/tail.c (usage): Tweak --help output. Suggestions from Karl Berry.
-
- Move some macros into m4/.
- * configure.in (_GNU_SOURCE): Don't define here.
- (AC_SYS_LARGEFILE): Don't use here.
- (AM_C_PROTOTYPES): Don't use here.
- * acconfig.h: Remove now-unused file.
-
-2000-04-09 Jim Meyering
-
- * doc/textutils.texi: Include constants.texi.
- (tail invocation): Use `@value's instead of referring to the
- output of `tail --help' for defaults.
- * doc/Makefile.am (constants.texi): New rule.
- (EXTRA_DIST): Add constants.texi.
- (MAINTAINERCLEANFILES): Add it here, too.
- (textutils.dvi, textutils.info): Depend on constants.texi.
-
- * src/tail.c (usage): Clarify descriptions of the --max-* options.
- From Karl Berry.
-
-2000-04-03 Jim Meyering
-
- * configure.in (AC_CHECK_HEADERS): Remove langinfo.h. Now it's in m4/.
- (AC_CHECK_FUNCS): Remove nl_langinfo. Now it's in m4/.
-
-2000-03-17 Jim Meyering
-
- * configure.in (ALL_LINGUAS): Add Slovenian (sl).
-
-2000-03-12 Jim Meyering
-
- Merge from fileutils.
- * src/system.h "pathmax.h": Include.
- : Include if appropriate.
- : Likewise.
- : Likewise.
- : Likewise.
- : Likewise.
- (major, minor, makedev): Define if needed.
- (struct utimbuf): Declare if missing.
- (ST_BLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): Define.
-
- * src/cksum.c (usage): Correct --help output.
- Prompted by a report from Gregory Leblanc.
-
-2000-03-05 Paul Eggert
-
- * src/sort.c (struct buffer.newline_free): New member.
- (initbuf, findlines): Set it.
- (fillbuf): Do not double the size of a full buffer to append a newline
- unless the buffer is known to be newline free.
-
-2000-03-05 Jim Meyering
-
- * Version 2.0e.
-
-2000-03-04 Jim Meyering
-
- Don't get failed assertion for `tail -f directory'.
- * src/tail.c: Revert most of 1999-10-20 change. Instead, ...
- (IS_TAILABLE_FILE_TYPE): Define to produce similar result.
- (recheck): Use it here.
- (tail_file): Use it here.
- Reported by François Pinard.
-
- Once we encounter a file that is not of IS_TAILABLE_FILE_TYPE,
- marke it as such and ignore it forever after.
- * src/tail.c (struct File_spec): New member.
- (recheck): Initialize new member.
- (tail_file): Likewise.
- (tail_forever): Skip the file if it's marked as ignorable.
-
-2000-03-03 Jim Meyering
-
- * src/sort.c (fillbuf): Move declaration of local, cc, into scope of
- `while' loop where it's used.
-
-2000-03-02 Paul Eggert
-
- Big performance improvement when sorting many small files,
- building on a suggestion by Charles Randall.
-
- * src/sort.c (fillbuf): Skip memmove if it would be a no-op,
- as many memmove implementations are slow in that case.
- Don't examine leftover bytes for eolchar, since they may be left
- over from a previous file, and we want to read from this file.
-
- (sort): At end of file, if there is more input and buffer room,
- concatenate the next input file.
-
-2000-02-29 Jim Meyering
-
- * src/join.c (make_blank): Add an explicit cast to `unsigned char *'
- to placate HPUX's C compiler. Reported by Bob Proulx.
-
-2000-01-30 Jim Meyering
-
- * Version 2.0d.
-
- * Makefile.maint (my-distcheck): Depend on po-check, so I'll be warned
- about any required changes at `make distcheck' time rather than at
- `make alpha' time.
- (writable-files): New target.
- (my-distcheck): Depend on it.
- (alpha): Likewise.
-
- * po/POTFILES.in: Add these: lib/makepath.c, lib/rpmatch.c,
- and lib/same.c
-
-2000-01-29 Jim Meyering