summaryrefslogtreecommitdiff
path: root/NEWS
Commit message (Collapse)AuthorAgeFilesLines
* gnulib: fix Y2038 bug (again)Carlo Marcelo Arenas Belón2023-05-131-0/+3
| | | | | | | | | | AC_SYS_LARGEFILE meaning has changed, need AC_SYS_YEAR2038 as well * NEWS: mention this * tests: add test * bootstrap.conf: add year2038 Copyright-paperwork-exempt: yes
* diff: fix bug where -D does not workPaul Eggert2023-02-101-0/+5
| | | | | | | | Problem reported by Robert Webb (bug#61193). * NEWS: Mention this. * src/diff.c (main): Omit stray ‘sizeof’. * tests/ifdef: New test. * tests/Makefile.am (TESTS): Add it.
* maint: post-release administriviaJim Meyering2023-01-151-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.9v3.9Jim Meyering2023-01-151-1/+1
| | | | * NEWS: Record release date.
* maint: update copyright datesJim Meyering2023-01-011-1/+1
|
* maint: make update-copyrightJim Meyering2022-01-031-1/+1
|
* diff: fix timezone bug on SolarisPaul Eggert2021-10-151-0/+6
| | | | | | | | | | | | Problem reported by Vladimir Marek (bug#51228). * NEWS: Mention this. * src/context.c (print_context_label): Pass localtz to nstrftime, instead of always passing 0. * src/diff.c (main) [!HAVE_TM_GMTOFF]: Initialize localtz if time_format uses %z. * src/diff.h (localtz): New decl. * tests/Makefile.am (TESTS): Add timezone. * tests/timezone: New test.
* maint: post-release administriviaJim Meyering2021-08-011-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.8v3.8Jim Meyering2021-08-011-1/+1
| | | | * NEWS: Record release date.
* maint: update all copyright year number rangesJim Meyering2021-01-011-1/+1
| | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise.
* maint: update all copyright year number rangesJim Meyering2020-01-011-1/+1
| | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise.
* diff: don’t mistreat -N in arg as a large numberPaul Eggert2019-08-271-0/+4
| | | | | | | | | | | | | | Problem reported by alec (Bug#35256). * NEWS: Mention the fix. * bootstrap.conf (gnulib_modules): Use strtoimax and xstrtoimax, not strtoumax and strtoumax. * src/cmp.c (bytes): Now signed, with -1 representing no limit. All uses changed. * src/cmp.c (specify_ignore_initial, main): * src/diff.c (main): * src/ifdef.c (format_group): * src/sdiff.c (interact): Use strtoimax, not strtoumax.
* maint: convert all TABs to equivalent spaces in indentationJim Meyering2019-01-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | Using this file, cat > leading-blank.exempt <<\EOF (\.gitmodules|help2man|pre-commit)$ (?:^|\/)ChangeLog[^/]*$ (?:^|\/)(?:GNU)?[Mm]akefile[^/]*$ \.(?:am|mk)$ EOF run the following command to convert all non-conforming leading white space to be all spaces: git ls-files \ | pcregrep -vf leading-blank.exempt \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' Since that changed old NEWS, I also ran "make update-NEWS-hash" to update the old_NEWS_hash value in cfg.mk.
* diff: fix cmp, diff3, sdiff with stdin closedPaul Eggert2019-01-051-0/+8
| | | | | | | | | * NEWS: Mention this. * src/cmp.c, src/diff3.c, src/sdiff.c: Include stdopen.h. (main): Call stdopen early. * src/cmp.c (main): Simplify now that we need not worry about stdin being closed. * src/diff.c (main): Translate stdopen diagnostic.
* diff: remove unportable ‘diff -N - f <&-’ featurePaul Eggert2019-01-051-0/+9
| | | | | | | | | | | | * NEWS: Mention this. * bootstrap.conf (gnulib_modules): Add stdopen. * doc/diffutils.texi (Comparing Directories): Do not document behavior if stdin is closed. * src/diff.c: Include stdopen.h. (main): Call stdopen early. (compare_files) [__hpux]: Remove recently-introduced special case for HP-UX exec with stdin closed. * tests/new-file: Remove tests of the removed feature.
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-011-1/+1
| | | | * gnulib: Also update submodule for its copyright updates.
* maint: post-release administriviaJim Meyering2018-12-311-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.7v3.7Jim Meyering2018-12-311-1/+1
| | | | * NEWS: Record release date.
* diff: adjust ANSI escapes for compatibility with less -RDennis Lambe Jr2018-12-301-0/+4
| | | | | | | | | | | | | | | | | | | | GNU less can display ANSI-colored text with the -R flag, but this support has some limitations. One of them is that if an escape sequence starts on one line and ends on a different line, only the first line will be colored in less. As a result, when diff creates colored output with multi-line deletes or adds, less will only color the first line. This change resets ANSI color to the default at the end of each line and restarts it at the beginning of the next. It patches normal and context mode. Side-by-side already worked in my testing. * src/context.c (print_context_label, pr_context_hunk): As above. (pr_unidiff_hunk, print_context_header): Likewise. * src/normal.c (print_normal_hunk): Likewise. * tests/colors: Adjust existing tests to accommodate this. * NEWS (Improvements): Mention it. Proposed in http://bugs.gnu.org/31105
* diff: fix UMR with --strip-trailing-crPaul Eggert2018-12-281-0/+7
| | | | | | | | Problem reported by Hongxu Chen (Bug#31935). * src/io.c (prepare_text): Strip trailing CR before doing the rest of the analysis. * NEWS: Mention the fix. Co-authored-by: Jim Meyering <jim@meyering.net>
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* maint: post-release administriviaJim Meyering2017-05-211-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.6v3.6Jim Meyering2017-05-211-1/+1
| | | | * NEWS: Record release date.
* cmp: report prefix length when one file is shorterPaul Eggert2017-05-041-0/+5
| | | | | | | | | Requested by Dan Jacobson (Bug#22816). * NEWS: * doc/diffutils.texi (Invoking cmp, cmp Options): Document this. * src/cmp.c (cmp): Implement it. * tests/Makefile.am (TESTS): Add cmp. * tests/cmp: New file.
* tests: add test for latest fixJim Meyering2017-05-021-0/+6
| | | | | | * NEWS (Bug fixes): Describe it. * tests/invalid-re: New test for just-fixed bug. * tests/Makefile.am (TESTS): Add it.
* maint: add "introduced in 3.4" in latest NEWS entryJim Meyering2017-01-311-0/+1
| | | | * NEWS: Update. Also, thanks to Nelson Beebe for reporting this.
* diff: avoid UMR with ---presume-output-ttyJim Meyering2017-01-311-0/+3
| | | | | | | * src/diff.c (main): Always define presume_output_tty. Otherwise, it would be read uninitialized. Introduced in v3.3-45-g17e2698 * NEWS (Bug fixes): Mention it.
* maint: change "time stamp" to "timestamp" globallyJim Meyering2017-01-311-2/+2
| | | | | | | | This avoids a new syntax-check failure. * ChangeLog-2008: Perform that change. * doc/diffutils.texi: Likewise. * NEWS: Likewise. * cfg.mk: Update the old news hash accordingly.
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* diff: fix big performance degradation in 3.4Paul Eggert2016-10-251-0/+5
| | | | | | | | | * NEWS, doc/diffutils.texi (Overview): Document this. * src/analyze.c (diff_2_files): Restore too_expensive heuristic, but this time with a floor that is 16 times the old floor. This should fix Bug#16848, by generating good-quality output for its test case, while not introducing Bug#24715, by running nearly as fast as diff-3.3 for that test case.
* diff: port line numbers to mingw64Paul Eggert2016-08-271-0/+4
| | | | | | | | Problem reported by Peter Rosin (Bug#24311). * src/system.h (printint, pI): New typedef and macro. All uses of 'long int' and "%l" in printf format replaced by 'printint' and "%"pI respectively. * src/ifdef.c (do_printf_spec): Don't assume pI is length 1.
* maint: post-release administriviaJim Meyering2016-08-201-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.5v3.5Jim Meyering2016-08-201-1/+1
| | | | * NEWS: Record release date.
* diff3: fix heap use-after-free; add minimal diff3 test coverageBastian Beischer2016-08-131-0/+3
| | | | | | | | | | Commit v3.3-42-g3b74a90, "FIXME: src/diff3: plug a leak" added an invalid use of free, leading to use-after-free in nearly any invocation of diff3. Revert that commit. * NEWS (Bug fixes): Mention it. * tests/diff3: New file, to add minimal test coverage. * tests/Makefile.am (TESTS): Add it. Reported by Bastian Beischer in http://bugs.gnu.org/24210
* diff: disable colorization for TERM=dumbJim Meyering2016-08-081-0/+4
| | | | | | | | * src/diff.c (main): With --color or --color=auto, when TERM is "dumb", disable colorization. Suggested by Daniel Colascione. * NEWS (Bug fixes): Mention it. * tests/colors: Add a test that would fail without this change, yet passes with it.
* maint: post-release administriviaJim Meyering2016-08-081-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.4v3.4Jim Meyering2016-08-081-1/+1
| | | | * NEWS: Record release date.
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* diff --brief no longer mistakenly reports diff. with 0-sized /proc/ filesJim Meyering2015-12-061-0/+7
| | | | | | | | | | | | | | | | Normally, it is safe to assume two regular files are different when their st_size values are different. However, that assumption may be invalid if either value is zero, as happens with files on Linux /proc and /sys file systems. Since skipping this optimization will usually cost very little (one read syscall, to read zero bytes), it is fine to accommodate those unusual files. * src/analyze.c (diff_2_files): Do not assume regular files differ just because their st_size values differ when one or more is 0. * src/diff.c (compare_files): Likewise. * tests/brief-vs-proc-stat-zero: New test. * tests/Makefile.am: Add it. * NEWS (Bug fixes): Describe it. Reported by Stephan Müller in http://debbugs.gnu.org/21942
* doc: mention --color and --palette in NEWSGiuseppe Scrivano2015-11-291-0/+7
|
* maint: update copyright year ranges to include 2015; update gnulibJim Meyering2015-01-011-2/+2
|
* doc: mention diff -B fix in NEWSPaul Eggert2014-09-031-0/+3
|
* diff: remove TOO_EXPENSIVE heuristicPaul Eggert2014-02-231-0/+7
| | | | | | | | | | | | | Problem reported by Vincent Lefevre in <http://bugs.gnu.org/16848>. The simplest solution is to remove the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993. Although appropriate for circa-1993 hardware, these days the heuristic seems to be more trouble than it's worth. * NEWS: Document this. * doc/diffutils.texi (Overview): Modernize citations. Remove mention of TOO_EXPENSIVE heuristic. * src/analyze.c (diff_2_files): Adjust to TOO_EXPENSIVE-related API changes in gnulib's diffseq module.
* diff: exit with status 1, not 2, when binary files differPaul Eggert2014-01-311-0/+3
| | | | | | | | | Problem reported by Vincent Lefevre in <http://bugs.gnu.org/16608>. * NEWS: * doc/diffutils.texi (Binary, Invoking diff): Document this. * src/analyze.c (briefly_report): Return void, not int. All uses changed. Do not futz with exit status. Simplify. * tests/binary: Adjust to match new behavior.
* diff: fix bug with Asian file namesPaul Eggert2013-04-031-0/+7
| | | | | | | | | | | | Problem reported by Errembault Philippe in: http://lists.gnu.org/archive/html/bug-diffutils/2013-03/msg00012.html * NEWS: Document this. * src/dir.c (compare_names): Fall back on file_name_cmp if compare_collated returns 0, unless ignoring file name case. (diff_dirs): Don't bother with the O(N**2) stuff unless ignoring file name case. * tests/Makefile.am (TESTS): Add strcoll-0-names. * tests/strcoll-0-names: New file.
* doc: mention new option, --no-dereference in 3.3's NEWSJim Meyering2013-03-301-0/+6
| | | | | | | * NEWS (New feeatures): Update 3.3's news to mention --no-dereference. Reported by Denis Excoffier. * Makefile.am (old_NEWS_hash): Update, since this modifies old, and normally-immutable NEWS.
* maint: post-release administriviaJim Meyering2013-03-241-0/+3
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 3.3v3.3Jim Meyering2013-03-241-1/+1
| | | | * NEWS: Record release date.
* maint: update all copyright year number rangesJim Meyering2013-01-041-1/+1
| | | | Run "make update-copyright".
* diff: encode file names with special charactersAndreas Gruenbacher2012-09-101-0/+5
| | | | | | | | | | | * src/util.c (c_escape_char): New function. (c_escape): New function. (begin_output): Escape file names when needed. * src/context.c (print_context_header): New names parameter. (print_context_label): New name parameter. * src/diff.h (print_context_header): Change prototype. * tests/filename-quoting: New file. * NEWS: Document this change.