WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.43k stars 798 forks source link

Invalid compare Result #2317

Open swcreate-git opened 4 months ago

swcreate-git commented 4 months ago

WinMerge 2.16.40.0 X64, Windows 11

image

I encountered a strange comparison result.

These two files are actually different files, but they should be treated the same when the option to ignore White Space is turned on.

However, even though there is no real difference in the final line, it is detected as if there is a difference.

The following is the file I compared to the option I set.

image

Compare.zip

sdottaka commented 4 months ago

Unfortunately, WinMerge does not have an option to ignore differences in line endings when comparing files where one file has no end-of-line (EOL) characters at the end and the other file does have EOL characters at the end.

Duplicates #203 and #989