[TC 11.00 and older] Compare directories over network / diacritic characters

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
kamilbaranski
Junior Member
Junior Member
Posts: 5
Joined: 2007-12-31, 19:22 UTC
Location: Poland
Contact:

[TC 11.00 and older] Compare directories over network / diacritic characters

Post by *kamilbaranski »

Image: https://ibb.co/2kWJnRs

When comparing local directories with the ones over the network, diacritic characters are treated as different ones. However, in the next step (sync) TC asks if we want to replace existing files.

Here I'm comparing the Win10 (local) with MacOS 10.15.7 (network).
Greetings • Have a nice day! • http://kamilbaranski.com/
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *Dalai »

kamilbaranski wrote: 2023-10-09, 10:34 UTCHowever, in the next step (sync) TC asks if we want to replace existing files.
About the exact same files that have been found to have different names in the comparison?

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *ghisler(Author) »

The reason is MacOS: It stores diacritics differently from Windows, so they are indeed separate directories.
For example,
Windows stores é as a single character, while
MacOS stores it as e plus separate accent ´.
Author of Total Commander
https://www.ghisler.com
User avatar
kamilbaranski
Junior Member
Junior Member
Posts: 5
Joined: 2007-12-31, 19:22 UTC
Location: Poland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *kamilbaranski »

The reason is MacOS: It stores diacritics differently from Windows, so they are indeed separate directories.
Yes, can we have a fix for this? If there's later the "overwrite question" dialog, I assume we can find out if these are the same files/directories. Otherwise the compare directories function is useless for such files.
Greetings • Have a nice day! • http://kamilbaranski.com/
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *ghisler(Author) »

No we can't. The problem is that these two directories can actually both exist at the same time on the same drive, in the same subdirectory.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *ghisler(Author) »

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
User avatar
kamilbaranski
Junior Member
Junior Member
Posts: 5
Joined: 2007-12-31, 19:22 UTC
Location: Poland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *kamilbaranski »

ghisler(Author) wrote: 2023-10-11, 09:40 UTC No we can't. The problem is that these two directories can actually both exist at the same time on the same drive, in the same subdirectory.
I understand. However I'd suggest a convenient solution:

Could we have the checkbox like a "Ignore diacritic characters" next to the "Ignore date" checkbox?
Greetings • Have a nice day! • http://kamilbaranski.com/
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *ghisler(Author) »

That would be a lot more difficult, because it would also have to match names with diacritics with names where they are completely removed.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13067
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *Hacker »

kamilbaranski,
Could we have the checkbox like a "Ignore diacritic characters"
Are we talking about "Synchronize Dirs" or "Compare Directories"?
What should happen if there is:

Code: Select all

Left:      Right:
file name  fílé ňámé
           file name
?

Roman
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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *ghisler(Author) »

2Hacker
In your example, the two without diacritics would match. But there can be unsolvable cases like

Code: Select all

Left:      Right:
file name  fílé ňámé
           file nâme
Author of Total Commander
https://www.ghisler.com
User avatar
kamilbaranski
Junior Member
Junior Member
Posts: 5
Joined: 2007-12-31, 19:22 UTC
Location: Poland
Contact:

Re: [TC 11.00 and older] Compare directories over network / diacritic characters

Post by *kamilbaranski »

Hacker wrote:Are we talking about "Synchronize Dirs" or "Compare Directories"?
I meant the Synchronize Dirs window - I'm using it to synchronize changes in projects I work on both PC and Mac. At the moment I need to additionally check all these files by hand... (This is time-consuming and may introduce mistakes.)

In my example there are no such files, but I understand Christian must predict this behavior. I'm not sure what is the proper way to sync files "file name" and "fílé ňámé". I think the "ignore date" works only when comparing files, so should probably "ignore diacritics" - as "Ignore date" doesn't additionally handle the date of the file when syncing/replacing them.

I understand Apple is the one to blame here (not the first time though ;) ).
Greetings • Have a nice day! • http://kamilbaranski.com/
Post Reply