Bug 324851 - Kompare regards a file with DOS line ends as different from the same file with Linux line ends
Summary: Kompare regards a file with DOS line ends as different from the same file wit...
Status: RESOLVED WORKSFORME
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 4.1.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 18:25 UTC by Ralph Moenchmeyer
Modified: 2023-02-07 03:55 UTC (History)
1 user (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 Ralph Moenchmeyer 2013-09-12 18:25:25 UTC
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
Comment 1 Jeremy Whiting 2013-09-12 20:38:25 UTC
Did you try turning on "ignore all whitespace" under Kompare Settings -> Diff -> Options ? That lets me see only what actually changed between a windows and linux version of a file here.
Comment 2 Andrew Crouthamel 2018-11-10 03:22:37 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:29:30 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2023-01-08 22:44:57 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2023-01-23 05:04:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-02-07 03:55:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!