GNU bug report logs - #18402
Wrong output for single character files without newline

Previous Next

Package: diffutils;

Reported by: Eric Blake <eblake <at> redhat.com>

Date: Wed, 3 Sep 2014 21:05:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jim Meyering <jim <at> meyering.net>, 18402 <at> debbugs.gnu.org
Subject: bug#18402: [bug-diffutils] bug#18402: bug#18402: Wrong output for single character files without newline
Date: Wed, 03 Sep 2014 17:20:08 -0700
Jim Meyering wrote:
> can you give performance deltas on moderate
> or pathologically affected inputs?

Maybe something like this:

diff --horizon-lines=100000000000000000000 gnulib/ChangeLog /tmp/ChangeLog

where the two files are copies.  The bug fix sped up performance about 
5x on my platform, which is Fedora 20 x86-64, AMD Phenom II X4 910e.




This bug report was last modified 10 years and 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.