[kompare] [Bug 324851] New: Kompare regards a file with DOS line ends as different from the same file with Linux line ends
Ralph Moenchmeyer
rm at anracon.de
Thu Sep 12 18:25:25 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=324851
Bug ID: 324851
Summary: Kompare regards a file with DOS line ends as different
from the same file with Linux line ends
Classification: Unclassified
Product: kompare
Version: 4.1.1
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: kompare-devel at kde.org
Reporter: rm at anracon.de
I have to work with web development tools both under Linux and Windows.
Windows folders are mounted on my Linux device. IDE editors on both sides
respect the different line ends which depend on whether the files have
originally been created under Windows or Linux.
Sometimes I have to compare contents from files which originated in Windows and
Linux. Recently I had almost the same files with just 3 lines different.
Kompare, however, said all 2370 were different.
No chance to go on working with Kompare for the files in question. Comparing
the same files with Meld and KDIFF3 worked perfectly, instead !.
The reason for Kompare's different behaviour obviously was that the line
endings were different in the files (DOS/Win CR-LF vs. Linux LF).
Now, one may discuss, whether this is or is not a difference which should be
taken into account by Kompare. So some may not describe the Kompare behaviour
as a bug.
I regard it as a bug - because in standard cases it is the real contents that
counts. And this opinion is strengthened by the fact that other comparison
tools give a hint on different endings but do not handle them as a real
difference. See KDIFF3. What makes the situation really bad is that I could
not find any Kompare option to deal with the situation. (Maybe I was too
stupid for that). Result: You cannot work with Kompare in such a case without
first manipulating the files, then comparing, then changing the line ends back
again to the original values.
Reproducible: Always
Steps to Reproduce:
1. Create a file under DOS/Windows with some contents.
2. Create a file with the same contents under Linux.
3. Mount the Windows device under Linux.
4. Use Kompare to compare the files.
Actual Results:
All lines will be regarded as different.
Expected Results:
Line endings should be ignored. Maybe after a respective dialog or an options
setting
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kompare-devel
mailing list