GNU bug report logs - #33128
cmp -l misses differences

Previous Next

Package: diffutils;

Reported by: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>

Date: Tue, 23 Oct 2018 15:27:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33128 in the body.
You can then email your comments to 33128 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#33128; Package diffutils. (Tue, 23 Oct 2018 15:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Tue, 23 Oct 2018 15:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>
To: "bug-diffutils <at> gnu.org" <bug-diffutils <at> gnu.org>
Subject: cmp -l misses differences
Date: Tue, 23 Oct 2018 12:44:34 +0000
[Message part 1 (text/plain, inline)]
Hi,

it seems that "cmp -l" doesn't list all differences. The attached blobs differ
among others at positions 0x437 (1079), 0x4b7 (1207) and 0x5b7 (1463).
One file contains 0x80 at these positions, the other 0. cmp shows neither of
these. I tested with 3.5 and Git Head.

It would be interesting to compare with other implementations, but I don't
have one available.

Regards,
Hans-Joachim Baader
[blob1 (application/octet-stream, attachment)]
[blob2 (application/octet-stream, attachment)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 24 Oct 2018 00:08:01 GMT) Full text and rfc822 format available.

Notification sent to Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>:
bug acknowledged by developer. (Wed, 24 Oct 2018 00:08:02 GMT) Full text and rfc822 format available.

Message #10 received at 33128-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>,
 33128-done <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#33128: cmp -l misses differences
Date: Tue, 23 Oct 2018 17:07:47 -0700
On 10/23/18 5:44 AM, Hans-Joachim Baader wrote:
> it seems that "cmp -l" doesn't list all differences. The attached blobs differ
> among others at positions 0x437 (1079), 0x4b7 (1207) and 0x5b7 (1463).

cmp uses origin 1, not origin 0, and it reports all the positions you 
mentioned; it just adds 1 to them.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 273 days ago.

Previous Next


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