Bug 160661 - kompare fails horribly to show the differences in files.
Summary: kompare fails horribly to show the differences in files.
Status: RESOLVED WORKSFORME
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 3.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-10 17:01 UTC by Scott King
Modified: 2009-02-14 22:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott King 2008-04-10 17:01:05 UTC
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)
Comment 1 Hikaru 2009-02-14 21:17:49 UTC
Kompare on KDE 4.2 works fine with your test case.

Is this bug still valid?
Comment 2 Otto Bruggeman 2009-02-14 22:43:57 UTC
It also works for me with trunk so i am closing this as fixed. Besides KDE 3.5.x will no longer be released (at least i will not release versions for KDE 3 anymore) so i can only suggest to compile a newer version of KDE.

If you find that it still fails then reopen the bug and please give me a test file that shows the problem because these 2 work just fine.