[solved] External programs cannot always launch TC

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[solved] External programs cannot always launch TC

Post by *petermad »

This is not a bug that I can confirm myself, because it is not present in Windows XP (but in Windows 7 and maybe Vista which I don't have access to).

It seems that if the current language file contains the codepage=xxxx statement in line 2, then certain programs cannot launch TC.

One of the two programs I know of, that is showing this bug is "Everything" ( http://www.voidtools.com ) with these parameter in the Everything.ini file:

Code: Select all

open_folder_command=$exec("path_to_tc\totalcmd.exe" /O /T /R="%1")
open_folder_path_command=$exec("path_to_tc\totalcmd.exe" /O /T /R="$parent(%1)")
The other program is "XCD" ( http://mitglied.lycos.de/matbal ) . Here I base my report on this http://www.ghisler.ch/board/viewtopic.php?p=168190#168190

Can anyone using aq language with codepage=xxxx as the second line in their .lng file (for example the default German) verify this report :?:

Also if you can verify the report, can you also test if it only happens with codepage=1252 or does it also happen with language files with other codepage=xxxx settings (Český, Magyar, 한국어, Polski, Slovenský) :?:
Last edited by petermad on 2021-05-30, 17:57 UTC, edited 1 time in total.
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:

Post by *ghisler(Author) »

Strange, what happens when you do that? Does the totalcmd process appear in the task manager?
Author of Total Commander
https://www.ghisler.com
WhACKO
Junior Member
Junior Member
Posts: 67
Joined: 2009-04-07, 11:17 UTC

Post by *WhACKO »

It works only once if Total Commander isn't open, the correct directory is open in the right panel.

After that it just get's focus, without opening any directories.

With the codepage= line removed from the *.lng (and restart TC) file it all works as it should.

Edit: After seeing the F4Menu solution, i tried with changing to codepage=1251 (not really sure how to check on Windows 7 what codepage I'm using, but I'm guessing it's set to Cyrillic because I'm using Macedonian Regional settings) and it also works like that.
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
Strange, what happens when you do that?
For Everything see WhACKO' answer here above'

For XCD it simply stops working acording to http://www.ghisler.ch/board/viewtopic.php?p=168190#168190 and if codepage=1252 is removed or replaced with codepage=1251 it works again (for people working under a locale using that codepage - see http://www.ghisler.ch/board/viewtopic.php?p=168320#168320

See also http://ghisler.ch/board/viewtopic.php?p=168340#168340 - seems to be related.
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
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

The same behaviour WhACKO described applies wnen using XCD. TC gets the focus and nothing happens. That line containing codepage is causing all the trouble.

I guess all the external programs that need some access to in TC are having this situatuon. By now confirmed with XCD, F4Menu, Everything. Now waiting for someone using Locate32 to confirm too ;)


2WhACKO
Yes, Macedonian is 1251. I'm on that locale too :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Do you use the option "Allow only one copy of Total Commander"?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, I don't use "Allow only one copy of Total Commander"

And I can reproduce the bug with Everything and F4Menu now too (so it wasn't a Win 7 / Vista only thing) - all I have to do, is to change codepage=1252 to fx codepage=1251 in my Danish language file and restart TC.

Haven't tried XCD.
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
WhACKO
Junior Member
Junior Member
Posts: 67
Joined: 2009-04-07, 11:17 UTC

Post by *WhACKO »

Yes I use the option "Allow only one copy of Total Commander".

anyway if the codepage= line in the *.lng isn't really necessary I don't think this is that big of an issue...
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

I use it also, but the behaviour is the same regardless of this setting. I have just tested it with the switch on and off.

Changing the codepage from 125x to 1251 makes everything works ok. This applies to petermad's extended menu, doesn't tried with other languages. Macedonian locale on winXP
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could finally reproduce it now! I had to close and restart TC after switching to a language using a different code page, only then I got the error: Then TC creates its main window with class name TTOTAL_CMD.UnicodeClass (as a Unicode window).

When you start TC again with parameter /O, it cannot find that window, and therefore cannot pass the path names to the previous instance. This is easy to fix, so I will correct it for public beta 2. Thanks for all your help in finding this problem!
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Maybe this is correlated to this bug: http://www.ghisler.ch/board/viewtopic.php?p=168562#168562
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:

Post by *ghisler(Author) »

No, they are not correlated.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Seems to be fixed in TC 7.50b2 :-)
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:

Post by *ghisler(Author) »

Great, thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply