[TC 9.51] Compare by text content, inproper results

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Zygus
Junior Member
Junior Member
Posts: 37
Joined: 2013-02-23, 17:51 UTC

[TC 9.51] Compare by text content, inproper results

Post by *Zygus »

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.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 9.51] Compare by text content, inproper results

Post by *Horst.Epp »

Confirmed for TC 10
Comparing the same files with Beyond Compare or WinMerge shows the correct diffs in line 1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 9.51] Compare by text content, inproper results

Post by *petermad »

I can confirm it too.

Zygus wrote:Seems it just can't properly point difference if word has less than 3 letters
Yes, If I change CC in both files to CCC the expected result is shown.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 9.51] Compare by text content, inproper results

Post by *ghisler(Author) »

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
Zygus
Junior Member
Junior Member
Posts: 37
Joined: 2013-02-23, 17:51 UTC

Re: [TC 9.51] Compare by text content, inproper results

Post by *Zygus »

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 ...
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 9.51] Compare by text content, inproper results

Post by *Horst.Epp »

In an assembler source a 3 character diff may be a major problem if not detected.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 9.51] Compare by text content, inproper results

Post by *ghisler(Author) »

It is still being detected, just not used for re-synchronization.
Author of Total Commander
https://www.ghisler.com
Post Reply