When comparing two the same text files in Unix (LF) and in Windows (CR+LF) file format also may or may not contain "\t" or spaces on a different places, the result in "Compare contents" window shows "0 differences found".
This can be interpreted as a philosophical question: are these two text files equal or not?
Мerry welcome to the holidays
Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Moderators: Hacker, petermad, Stefan2, white
Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
#381167 Single user license [08:50, 26.10.2022]
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Create two text files with the same content like "123456789". In second file insert some spaces (or tabs) in front of the content "123456789" (something like that: " 123456789")
When compare these two files in "Compare contents" window will shows "0 differences found", but actually there is a difference!
When compare these two files in "Compare contents" window will shows "0 differences found", but actually there is a difference!
#381167 Single user license [08:50, 26.10.2022]
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Thats wrong.
You have set the option "Ignore repeated spaces".
Remove this option and TC reports 1 difference.
You have set the option "Ignore repeated spaces".
Remove this option and TC reports 1 difference.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Horst.Epp you are right about spaces and tabs. I even didn't saw the option "Ignore repeated spaces". Thank you!Horst.Epp wrote: 2021-12-25, 09:49 UTC Thats wrong.
You have set the option "Ignore repeated spaces".
Remove this option and TC reports 1 difference.
But you are wrong about "LF"(unix) comparing with "CR+LF"(windows):
["123456789"LF <=!=> "123456789"CR+LF]
{PS. Please, don't be mad ат me, I am trying to be just а TC improver}
Best Regards
#381167 Single user license [08:50, 26.10.2022]
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
The lines themselves are equal, but the line endings might not be identical. The question is: How do you indicate a difference in line endings without it appearing that all lines are different? Line endings are not printable as a character.angel wrote: 2021-12-24, 15:04 UTCThis can be interpreted as a philosophical question: are these two text files equal or not?
If the files are identical, i.e. exact same byte sequence throughout both files, TC just informs the user about that and doesn't open the Compare by contents window. Considering the fact that TC opens the Compare by contents window indicates that there are some differences which might be caused by non-printable characters. The number in the lower left corner tells the user about the number of differences on the lines themselves; this number is also influenced by the other options like ignoring repeated spaces, as you have experiences yourself.
AFAIK TC has always behaved this way, and I wouldn't want to see it changed now after so many years.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Nobody likes the change, especially the old oneDalai wrote: 2021-12-25, 10:21 UTC AFAIK TC has always behaved this way, and I wouldn't want to see it changed now after so many years.

[thanks God, the Nature thinks different

Best Regards
#381167 Single user license [08:50, 26.10.2022]
Re: Comparing LF, CR+LF and \t and spaces (on a different places) in two text files
Moderator message from: "Hacker"
Moved to the English forum.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.