[Bug 160661] New: kompare fails horribly to show the differences in files.
Scott King
scott.king at tamucc.edu
Thu Apr 10 17:01:06 CEST 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=160661
Summary: kompare fails horribly to show the differences in files.
Product: kompare
Version: 3.4
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kompare-devel kde org
ReportedBy: scott.king tamucc edu
Version: 3.4 (using KDE 3.5.9)
Installed from: Gentoo Packages
Compiler: gcc version 3.4.6 (Gentoo 3.4.6-r2, ssp-3.4.6-1.0, pie-8.7.10) built from emerge kde
OS: Linux
The algorithm the kompare is using is either buggy or there are some pointer problems somewhere.
I had to lists of students in alphabetical oder from two different semesters. One had five lines less than the other, One had 14 different names, the other had 9. When I did a kompare on the two lists, it showed only 3 different lines,
1 changed, 1 added, and 1 deleted. And it said both files are of the same length. I did this running kompare from the command line (kompare file1 file2). If I do in the other way around, I get the same behavior, except the files are now only 1 line different and they are the shorter length. If I select the files using the GUI I get the same thing. I've
tried turning off all options, same behavior. diff, of course gives me a much different picture.
I then put together two show files
------------------------- cut -------------------------
different line 1 file 2
common line
common line
different line 2 file 2
common line
common line
different line 3 file 2
------------------------- cut ---------------------------
different line 1 file 1
common line
common line
different line 2 file 1
common line
common line
different line 3 file 1
------------------------- cut ----------------------------
This is a much simpler case, only 3 changed lines and 4 unchanged lines. Here kompare gives me
that the first line only is changed and it shows nothing in line one of the second file. The second file is
also a copy of the first file, regardless of what order I do the kompare.
I am running the laters version of kde available through emerge in gentoo
might be related to bug 75917 (very old bug)
More information about the Kompare-devel
mailing list