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...
Confusing file compare when A is in B but B is longer than A
Confusing file compare when A is in B but B is longer than A
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
https://prino.neocities.org/zOS/zOS-Tools.html - Some programming here
robert.ah.prins @ the.17+Gb.Google thingy
https://prino.neocities.org/zOS/zOS-Tools.html - Some programming here
Re: File compare bug
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.
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.