[TC 9.51] Compare by text content, inproper results

Please report only one bug per message!

Moderators: white, sheep, Hacker, Stefan2

Post Reply
Zygus
Junior Member
Junior Member
Posts: 23
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: 4578
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 21H2 (OS Build 22000.318)
TC 10.00 x64 / x86
Everything 1.5.0.1286a (x64)
User avatar
petermad
Power Member
Power Member
Posts: 10897
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, 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 10.00 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H1) 64bit, 'Everything' 1.4.1.1009 (x64)
TC 3.24b1 on Android 6 & 11
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41703
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
http://www.ghisler.com
Zygus
Junior Member
Junior Member
Posts: 23
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: 4578
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 21H2 (OS Build 22000.318)
TC 10.00 x64 / x86
Everything 1.5.0.1286a (x64)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41703
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
http://www.ghisler.com
Post Reply