I have found out that comparing 2 text files doesn't give correct result in such scenario:
first file:
ABCD AA BB CC
ABCD AA BB DDD
second file:
ABCD CC
ABCD DDD
Comparation for 2 line will only mark "AA BB" because it is only difference beetween strings.
But in first line it will mark "AA BB" and also "CC" which is the same on both sides. Seems it just can't properly point difference if word has less than 3 letters.
[TC 9.51] Compare by text content, inproper results
Moderators: Hacker, petermad, Stefan2, white
Re: [TC 9.51] Compare by text content, inproper results
Confirmed for TC 10
Comparing the same files with Beyond Compare or WinMerge shows the correct diffs in line 1
Comparing the same files with Beyond Compare or WinMerge shows the correct diffs in line 1
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [TC 9.51] Compare by text content, inproper results
I can confirm it too.
Yes, If I change CC in both files to CCC the expected result is shown.Zygus wrote:Seems it just can't properly point difference if word has less than 3 letters
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Compare by text content, inproper results
This is intentional. TC looks for insertions/deletions, but 2 characters and less are ignored - im my tests, they found too many false positives when the insertion contained similar text.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] Compare by text content, inproper results
Well, maybe user should have a possibility to decide to limit search to 3 characters or not? Because with longer files i have more work to compare them.
Example is as simple as i could create, normally i am not using this feature to compare ABCD with ABCD ...
Example is as simple as i could create, normally i am not using this feature to compare ABCD with ABCD ...
Re: [TC 9.51] Compare by text content, inproper results
In an assembler source a 3 character diff may be a major problem if not detected.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Compare by text content, inproper results
It is still being detected, just not used for re-synchronization.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com