Page 1 of 1

Confusing file compare when A is in B but B is longer than A

Posted: 27 Jul 2014 07:27
by prino
Comparing two files, result, a pop-up with:

"The chosen files are identical. The file sizes are different, though!"

Oops...

Files are two text files, one ends with an extra CR/LF/EOF (x0D0A1A) sequence...

Re: File compare bug

Posted: 27 Jul 2014 22:13
by Maƫl
Yes, that's expected and what the message tries to convey. They are identical up to the point where one file continues and has additional bytes. So A is contained in B. But B is longer and a superset (or more correctly supersequence) of A.

The reason was that there is no way to step through the additional bytes since one side (the shorter file) will have no bytes to compare to.

Agreed though that the wording is confusing, and it would probably be more intuitive and useful to have it show the additional bytes as red or something.

I'll move it to feature requests.