[TC10.0, TC9.x] %PROCESSOR_ARCHITECTURE:~3,2% in [Packer] lines...

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

[TC10.0, TC9.x] %PROCESSOR_ARCHITECTURE:~3,2% in [Packer] lines...

Post by *MaxX »

Wincmd.ini

This one works:
[Packer]
RAR="%COMMANDER_PATH%\Plugins\arc\Rar%PROCESSOR_ARCHITECTURE%.exe" -ma5 -m5 -s -t


This does not work:
[Packer]
RAR="%COMMANDER_PATH%\Plugins\arc\Rar%PROCESSOR_ARCHITECTURE:~3,2%.exe" -ma5 -m5 -s -t


BTW,
Editor=%COMMANDER_PATH%\AkelPad%PROCESSOR_ARCHITECTURE:~3,2%.exe
and any %PROCESSOR_ARCHITECTURE:~3,2% in [user] also works fine
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.0, TC9.x] %PROCESSOR_ARCHITECTURE:~3,2% in [Packer] lines...

Post by *ghisler(Author) »

I have checked it - the packer functions use the older ANSI function to replace environment variables, which doesn't support the :~ option. The editor uses the Unicode functions, which supports it. I will consider to support it also in the ANSI function, but it will take some time to implement.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.0, TC9.x] %PROCESSOR_ARCHITECTURE:~3,2% in [Packer] lines...

Post by *ghisler(Author) »

This should be fixed in beta 7, please try it!
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC10.0, TC9.x] %PROCESSOR_ARCHITECTURE:~3,2% in [Packer] lines...

Post by *MaxX »

Works fine in beta 7. Thanks.
Ukrainian Total Commander Translator. Feedback and discuss.
Post Reply