Bug 169491 - repeating text corrupting diff
Summary: repeating text corrupting diff
Status: CONFIRMED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 3.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 15:39 UTC by Graham
Modified: 2015-09-03 12:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
shot of kompare showing the corrupted diff and the original text (25.80 KB, image/png)
2008-08-20 15:42 UTC, Graham
Details
test file 1 (913 bytes, text/x-rpm-spec)
2015-09-02 09:20 UTC, Andrej Krutak
Details
test file 2 (1.28 KB, text/x-rpm-spec)
2015-09-02 09:20 UTC, Andrej Krutak
Details
redundant stuff in f2 f1 diff (164.75 KB, image/png)
2015-09-03 06:41 UTC, Andrej Krutak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham 2008-08-20 15:39:48 UTC
Version:            (using KDE 3.5.9)
OS:                Linux
Installed from:    Ubuntu Packages

The diff text is repeated in the window and when you merge the text the repeated pattern ends up in the file too

See shot (hopefully).

Here you can see the text:

    {
        WCHAR           szSsid[33];

repeated twice in the diff, but the original files do not have this.
Comment 1 Graham 2008-08-20 15:42:19 UTC
Created attachment 26946 [details]
shot of kompare showing the corrupted diff and the original text

I have a larger shot showing the complete desktop and can supply the files on request.
Comment 2 FiNeX 2009-01-04 17:12:51 UTC
Hi, can you try to reproduce using the KDE 4 version?
Comment 3 Graham 2009-01-23 20:31:13 UTC
This is not going to be easy as I don't use KDE4 due to missing functionality.

Also the files are no longer available.

Comment 4 Graham 2009-01-23 20:36:16 UTC
I actually worked around this by using KDiff3 which in some ways is better.

This could be a suggested workaround for anyone else seeing this.

It also seemed to be specific to that machine/network.
Comment 5 Otto Bruggeman 2009-03-11 01:16:21 UTC
I'm sure this is still in there. I'm not sure what causes it but i have experienced it myself. It comes from blending but i can not put my finger on the sore spot yet.
Comment 6 Andrej Krutak 2015-08-31 16:09:42 UTC
This is still valid at least as of kde 4.13 (I will attach example files tomorrow). If nobody fixes such huge bug for 7 years, probably it'd be better to somehow deprecate this tool in favor of kdiff3?
Comment 7 Kevin Kofler 2015-08-31 23:46:48 UTC
I don't remember ever having run into this. And unfortunately, the bug report does not contain the files reproducing the issue. Do you have any that you can attach?
Comment 8 Andrej Krutak 2015-09-02 09:20:30 UTC
Created attachment 94340 [details]
test file 1
Comment 9 Andrej Krutak 2015-09-02 09:20:52 UTC
Created attachment 94341 [details]
test file 2
Comment 10 Andrej Krutak 2015-09-02 09:21:57 UTC
If you compare file 2 and 1 (kompare f2 f1), you will see the problem, hopefully. The other way around (kompare f1 f2) works fine...
Comment 11 Kevin Kofler 2015-09-02 10:51:57 UTC
Thank you for the reproducers. So you are talking about the "rm -rf $RPM_BUILD_ROOT" in the %clean section?
Comment 12 Andrej Krutak 2015-09-03 06:41:59 UTC
Created attachment 94364 [details]
redundant stuff in f2 f1 diff
Comment 13 Andrej Krutak 2015-09-03 06:42:52 UTC
I added what I see - there whole f2 file is repeated on both sides after the last line(s).
Comment 14 Andrej Krutak 2015-09-03 06:45:21 UTC
Maybe it's a bit different issue than the OP specified, but maybe it also comes from the same source?
Comment 15 Kevin Kofler 2015-09-03 11:00:44 UTC
I don't see this happening here on Fedora 21, Kompare from KDE Applications 14.12.3.
Comment 16 Andrej Krutak 2015-09-03 12:09:54 UTC
I found that the option 'Preferences/Diff/Options/Ignore added or removed empty lines' causes this, in my case.