Directory menu - unable to add folders in Unicode uppercase names

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
guest666
Junior Member
Junior Member
Posts: 3
Joined: 2008-06-23, 08:04 UTC

Directory menu - unable to add folders in Unicode uppercase names

Post by *guest666 »

Hello,
I have a problem in Total Commander 10.00 (x64).
The link to a folder that has uppercase letters with Czech accents in the name is broken while adding it to wincmd.ini.
The uppercase characters with Czech accents are replaced with an underscore.

The "cd d:\Downloads\KLÁŠTER_II" becomes "cd d:\Downloads\KL_TER_II" after saving.

And this happens after pressing Ctrl+D --> Add current dir.
If I edit wincmd.ini manually, then the link looks fine, but the directory change still doesn't happen.

For folder names with lowercase Czech characters there is everything ok.
Is there any solution to this problem?

Thank you.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Directory menu - unable to add folders in Unicode uppercase names

Post by *Usher »

1. Open Help -> About Total Commander and locate your wincmd.ini.
2. Close TC, open wincmd.ini in Notepad and save it as "wincmd.ini" with Unicode (UTF-16LE) encoding.
3. Run TC and try again.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory menu - unable to add folders in Unicode uppercase names

Post by *ghisler(Author) »

The wincmd.ini only supports ANSI and UTF-16LE encoding. If you save it with notepad as UTF-8, it will not work.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: Directory menu - unable to add folders in Unicode uppercase names

Post by *Fla$her »

guest666 wrote: 2022-06-23, 12:51 UTCAnd this happens after pressing Ctrl+D --> Add current dir.
I have ANSI. In the presence of such characters, the record is formed as follows:
menu153=п»їKLГЃЕ TER_II
cmd153=п»їcd D:\Downloads\KLГЃЕ TER_II
Everything is readable, doubling the size of wincmd.ini is not required.
guest666 wrote: 2022-06-23, 12:51 UTCIf I edit wincmd.ini manually
In ANSI, this cannot be done manually.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Directory menu - unable to add folders in Unicode uppercase names

Post by *ghisler(Author) »

Indeed if your wincmd.ini is using ANSI, you can't nomally store Unicode characters from different code pages in it. TC solves this by storing individual strings as UTF-8 with the UTF-8 byte order mark (what you see as п»ї). You can't edit that manually, that's why you would have to save the entire ini as UTF-16.
Author of Total Commander
https://www.ghisler.com
Post Reply