[TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

[TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

Hello! [TC 11.50b1 x64]
I could not call 7-zip external packer, it was stored like this:
d:\Софт\Утилиты\Archivation\7-zip\7z2408-x64\ - I chose the path but in wincmd.ini
7zip=D:\Софт\Утилиты\Archivation\7-zip\7z2408-x64\7zG.exe
TC error - "it can't find the external packer" and then "Packer" setting was shown, not 7-zip setting.
Last edited by lelik007 on 2024-10-11, 05:33 UTC, edited 2 times in total.
siealex
Senior Member
Senior Member
Posts: 304
Joined: 2009-03-22, 16:36 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *siealex »

What encoding is used in wincmd.ini? Open it in an advanced text editor (e. g. Notepad++) and convert it into UTF-8. The path is stored in UTF-8, but read back in Win-1251 or a similar 8-bit encoding.
We are not so S.M.A.R.T. as we imagine...
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *petermad »

AFAIK the Windows API can only handle INI files with ANSI or UTF-16 (Unicode) encoding - NOT UFT-8
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

2siealex
Why should I save this file in UFT-8 for it's been in ANSI for all the time?

It's OK with the file and I can call rar.exe from that very folder I mentioned above and of course that path is stored in ini. Otherwise I'd be here a long time ago. But what if I close TC - open ini and copy the path from RAR= to 7zip= and save it. It's D:\????\???????\Archivation\7z2408-x64\7zG.exe in the field itself after opening TC.
What did Christian write here? : viewtopic.php?p=460873#p460873
This is exactly what I do. And I believe he'll fix it when he's got some time to do it. And this is it.
Last edited by lelik007 on 2024-10-14, 09:12 UTC, edited 1 time in total.
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

And one more thing for Christian in case it's something wrong.
If i choose standard rar.exe path - in the field it's:
"C:\Program Files\WinRAR\Rar.exe"
in ini
""C:\Program Files\WinRAR\Rar.exe""
this affects nothing for me but maybe it's not right.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *petermad »

I can confirm that a path with Софт\Утилиты\ in it, is not supported for packers in TC

If I enter a path like that in the 7Zip Packer configuration dialog it is saved like \Софт\Утилиты\, and is displayed in the conf. dialog as Софт\Утилиты\ - but it does not work.
If I enter a path like that in the Packer or ZIP Packer configuration it is saved like ????\??????? and does of course not work either then - so there is not just a problem in the 7Zip configuration dialog but for all 3 packer configuration dialogs.

It does not help to convert wincmd.ini to Unicode.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *ghisler(Author) »

Packers are currently called with ANSI path, so they must be in a directory with the same code page as your default system locale (language for non-Unicode programs). I will check whether I can change it at least for ZIP and 7-Zip.
Author of Total Commander
https://www.ghisler.com
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

so they must be in a directory with the same code page as your default system locale (language for non-Unicode programs).
They are.
3 months ago I decided to clean up my TC, deleted everything and set it up from the very beginning. This is exactly how .ini file was created by TC itself and don't remember I've edited it once. Windows 10 22H2 x64 Enterprise, nothing fancy.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *petermad »

2lelik007
so they must be in a directory with the same code page
This is about the path of the directory for the packer, not about the encoding of the .ini file
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

2petermad
I understand but rar.exe and 7zG.exe/7z.exe chosen for Zip work with the same very path. So it's doable to correct somehow.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *petermad »

2lelik007
rar.exe and 7zG.exe/7z.exe chosen for Zip work
As I wrote here above - if i use Софт\Утилиты\ in the Packer or the ZIP Packer configuration dialog it is saved as ????\???????

What are the paths in your wincmd.ini [Packer] section for RAR and ZIP?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

2petermad
I copied right from ini:
RAR=D:\Софт\Утилиты\Archivation\WinRAR\Rar.exe
ZIP=D:\Софт\Утилиты\Archivation\7-zip\7zG.exe
They both do work for a long time. This is why it surprised me that 7-zip doesn't work.
You maybe have this because your code page is different than mine. Mine is CP-1251.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *petermad »

2lelik007

Have you tried manually entering:
7zip=d:\Софт\Утилиты\Archivation\7-zip\7z2408-x64\7zG.exe
in wincmd.ini (restart TC afterwards)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
lelik007
Member
Member
Posts: 173
Joined: 2021-04-20, 06:37 UTC

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *lelik007 »

2petermad
I directly copied the path from:
ZIP=D:\Софт\Утилиты\Archivation\7-zip\7zG.exe
to
7zip=D:\Софт\Утилиты\Archivation\7-zip\7zG.exe
then this in the field itself after I open TC D:\????\???????\Archivation\7-zip\7zG.exe
This is no go...unfortunately.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50b1 x64] Can't call 7-zip external packer with Cyrillic path

Post by *ghisler(Author) »

That's really odd - but irrelevant, beta 2 will use Unicode paths on Windows NT based systems.
Author of Total Commander
https://www.ghisler.com
Post Reply