Bug 56552 - files without newline at the end are not comparable
Summary: files without newline at the end are not comparable
Status: CLOSED WORKSFORME
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDiff/Kompare bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-28 17:49 UTC by Rene Schneider
Modified: 2003-11-16 12:11 UTC (History)
0 users

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 Rene Schneider 2003-03-28 17:49:34 UTC
Version:           2.0 (using KDE KDE 3.0.5)
Installed from:    SuSE RPMs
OS:          Linux

Kompare doesn't compare files if at least one of the files has no newline at the end. It only shows an empty window.

I can reproduce this bug as follows:
echo -n Test > file1
echo -n Test2 > file2
kompare file1 file2
Comment 1 Rene Schneider 2003-04-07 20:35:28 UTC
The problem is the LANG environment. With "LANG=de_DE kompare file1 file2"
I can reproduce this bug. The line "setEnvironment( "LANG", "C");" in the
constructor of KompareProcess solves the problem for me and it seems
already fixed in CVS.

Comment 2 Otto Bruggeman 2003-04-14 17:27:12 UTC
Does not work for me in the make it cool branch (it has yet again a rewritten 
parser) so i'll have to fix it there and keep this bug open as a reminder of 
that.
Comment 3 Otto Bruggeman 2003-04-21 00:43:41 UTC
i think i fixed it all in make_it_cool too, i'll do some more testing but i'll change it to 
worksforme anyway.