← Back to team overview

touch-packages team mailing list archive

[Bug 1417568] Re: diff reports bogus differences on identical files

 

"non sensitive" is the problem :(

But now that I think about it, I have a suspect of the possible cause.

It could be that one file had linux-style newlines, and the other
window-style newlines (one being \r and the other \r\n, never remember
which is which).

So, the two filews would technically have one different character at the
end of each line though they would look identical and print identical
and compare identical when copied and pasted.

Is there an option to ignore different kinds of newline (i.e. consider
\r\n equal to \n alone, and other flavours of newline strings at the end
of a line)? I can't find such an option. If it exists, then this bug is
invalid, but if it doesn't exist it should definitely be added.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to diffutils in Ubuntu.
https://bugs.launchpad.net/bugs/1417568

Title:
  diff reports bogus differences on identical files

Status in diffutils package in Ubuntu:
  Incomplete

Bug description:
  I run
    diff file1 file2

  and I get a result where every single line of file1 is removed and
  then every single line of file2 is added.

  I look at them and they look identical.

  Then I copy and paste the two files at
  https://www.diffchecker.com/diff and it confirms that they are
  absolutely identical.

  
  I wanted to report this upstream, but I can't find a public a bugtracker.  Is it possible that they use a f*****g mailing list to discuss bugs?? Omg.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: diffutils 1:3.3-1
  ProcVersionSignature: Ubuntu 3.13.0-44.73-generic 3.13.11-ckt12
  Uname: Linux 3.13.0-44-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.6
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Tue Feb  3 14:10:33 2015
  Dependencies:
   gcc-4.9-base 4.9.1-0ubuntu1
   libc6 2.19-0ubuntu6.5
   libgcc1 1:4.9.1-0ubuntu1
   multiarch-support 2.19-0ubuntu6.5
  InstallationDate: Installed on 2013-10-11 (479 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  SourcePackage: diffutils
  UpgradeStatus: Upgraded to trusty on 2014-05-24 (254 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/diffutils/+bug/1417568/+subscriptions


References