Bug 56552

Summary: files without newline at the end are not comparable
Product: [Applications] kompare Reporter: Rene Schneider <rene.schneider2>
Component: generalAssignee: KDiff/Kompare bugs <bugs>
Status: CLOSED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

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.