TC 9.50RC2 not displaying UTF folder name correctly after launch

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
Miho14
Junior Member
Junior Member
Posts: 4
Joined: 2014-05-09, 06:21 UTC

TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *Miho14 »

I have a saved set of folder tabs. One of the tabs points to a folder "_pošta" with an UTF char, but the tab is not active.
After I rum TC 9.50RC2 (it happened in RC1 too), then the folder is displayed as "_po◆ta" (the UTF character changes into a diamond).

I have checked the wincmd.ini and the incorrect path is with a square instead of letter "š".

I suspect there was an error in converting (?) the ini file or reading it with the new version.

Image: https://i.ibb.co/3TRmRKG/wincmd.png
Active tab shows correct spelling, inactive shows the one loaded upon start.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *ghisler(Author) »

This can happen when you open the wincmd.ini for editing, and then save it as UTF-8 or Unicode when ital ready contained specially encoded Unicode names. TC itself doesn't convert ini files by itself.
Author of Total Commander
https://www.ghisler.com
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3861
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Re: TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *sqa_wizard »

If I understand correctly, the WINCMD.INI file has been saved in a mode, which is not the current mode.
Take a look at "Configuration - Options - Operation".
At the bottom the preferred type of file comments is set. (e.g. Plain text + UTF-8)
Verify that the setting is matching your needs.

First close TC to be sure there is no format in cache.
Next open WINCMD.INI in an editor (e.g. notepad++), convert it to your preferred format (e.g. UTF-8) and save it again.
Now any mixup of formats are repaired and you have a clean file.
Start TC again.
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *MVV »

sqa_wizard,
You're suggesting to convert wincmd.ini to UTF-16, am I correct? This should never be done, wincmd.ini doesn't support UTF-8 at all, it may only be in ANSI (better for portability) or UTF-16 (unfortunately has no benefits due to TC specifics) and TC will apply special encoding to its certain parts (it encodes values containing Unicode characters to UTF-8 and prefixes each one with a BOM).
Miho14
Junior Member
Junior Member
Posts: 4
Joined: 2014-05-09, 06:21 UTC

Re: TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *Miho14 »

ghisler(Author) wrote: 2020-02-02, 09:09 UTC This can happen when you open the wincmd.ini for editing, and then save it as UTF-8 or Unicode when ital ready contained specially encoded Unicode names. TC itself doesn't convert ini files by itself.
No, I did not touch wincmd.ini - not for reading, not for editing. All I did was install new version (9.50RC1) over the older one. When TC opened, the mentioned folder was displayed wrong.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50RC2 not displaying UTF folder name correctly after launch

Post by *ghisler(Author) »

I'm sorry but I cannot reproduce that. Here is what I tried:
1. Start Total Commander 9.22a with fresh ini, e.g.
c:\totalcmd\totalcmd.exe /i=c:\totalcmd\test.ini
2. Opened some tabs with Ctrl+T
3. Enter Unicode folder in some of the tabs, e.g. Cyrillic on a Western system
4. Close TC 9.22a
5. Open any TC 9.50 pre-release version:
c:\totalcmd950\totalcmd.exe /i=c:\totalcmd\test.ini
6. Tried the same also with the 64-bit version
-> All tabs appear correctly
Author of Total Commander
https://www.ghisler.com
Post Reply