[TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

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

Moderators: white, Hacker, petermad, Stefan2

Jyte
Junior Member
Junior Member
Posts: 8
Joined: 2003-09-01, 08:04 UTC

[TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Jyte »

Command line parameters forwarder is not working properly any more when using method from Compare files with Total Commander

Following button bar does not work
Beyond Compare
* Command: `"C:\Program Files\Beyond Compare 4\BCompare.exe"`
* Tooltip: `Compare Files`
* Parameters: `"%p%n" "%t%m"`

Once Beyond Compare is started it informs about not found files ( files to be compared c:\TEMP\test1.txt and c:\TEMP\test2.txt )
* left side shows like `c:\TEMP\hãà`
* right side shows like `c:\TEMP\Hká`

However works with following
Cygwin
* `C:\APPS\cygwin\Cygwin.bat`
* Parameters: `%p`
* Start path: `<EMPTY>`

Works with TC 11.00b6 and earlier.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *petermad »

2Jyte
HAve you perhaps updated your BCompare.exe ?

You are using the parameters "%p%n" "%t%m" instead of %P%N and %T%M - that means that you are passing the short 8.3 DOS names to the program, maybe the program can't handle that.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Jyte
Junior Member
Junior Member
Posts: 8
Joined: 2003-09-01, 08:04 UTC

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Jyte »

Thanks 2petermad, with following it started to work also when using TC 11.00b7 :)
* Parameters: "%P%N" "%T%M"
Only reason for change was updated Total Commander.
Personal licence #7588, another licence for work use
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *white »

Moderator message from: white » 2023-06-17, 10:05 UTC

Removed a certain unicode character from the subjects of the posts that caused problems for feeds.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *petermad »

Only reason for change was updated Total Commander.
Peculiar that it worked before beta7 with lowercase parameters but not with beta7

On newer WIndows versions, it is only drive C that supports old 8.3 filenames by default. Could it maybe be on other drives that it worked for you before? Plese try with %p%n %t%m on files on some other drives than C.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Jyte
Junior Member
Junior Member
Posts: 8
Joined: 2003-09-01, 08:04 UTC

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Jyte »

Tested again using following files to be compared ( Note! filenames with space and number and using TC 11.00b6 )
* c:\TEMP\test 1.txt
* c:\TEMP\test2.txt

Results
* parameters: "%P%N" "%T%M" - opens 3 windows saying file not found on all
* parameters: "%p%n" "%t%m" - works as expected

When doing same tests using TC 11.00b7 neither are working, did not test with different drives.
No other changes to setup than TC versions.

Would you please be kind and find way to go forward this - I will stay with beta 6...

Code: Select all

button28=C:\Program Files\Beyond Compare 4\BCompare.exe
cmd28=""C:\Program Files\Beyond Compare 4\BCompare.exe""
param28=""%p%n" "%t%m""
path28=C:\Program Files\Beyond Compare 4\
menu28=Compare Files ( lowercase )

Code: Select all

button39=C:\Program Files\Beyond Compare 4\BCompare.exe
cmd39=""C:\Program Files\Beyond Compare 4\BCompare.exe""
param39=""%P%N" "%T%M""
path39=C:\Program Files\Beyond Compare 4\
menu39=Compare Files ( uppercase )
Jyte
Junior Member
Junior Member
Posts: 8
Joined: 2003-09-01, 08:04 UTC

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Jyte »

Now tested also with USB drive as D: - neither are working when there is spaces in use.
Btw Win10 and thanks for hint about short name support, were not in need to think that earlier ( having only one drive, C: )
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Horst.Epp »

I can confirm a similar bug here.
I have a button with Beyond Compare using %c1 and %c2
which works fine with b6 but no longer using b7

The same problem with a WinMerge button.

Code: Select all

TOTALCMD#BAR#DATA
C:\Tools\Beyond Compare 2\BC2.exe
%c1 %c2
C:\Tools\Beyond Compare 2\BC2.exe
Beyond Compare

0
-1

Code: Select all

TOTALCMD#BAR#DATA
C:\Tools\WinMerge\WinMergeU.exe
%c1 %c2
C:\Tools\WinMerge\WinMergeU.exe
WinMerge

0
-1
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Dalai »

2Jyte
Don't put quotes around %P%N! TC adds them by itself (uppercase only, obviously). If you want to put quotes there explicitely use "%P%O.%E" instead.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *petermad »

2Jyte
Try these:

Code: Select all

button28=C:\Program Files\Beyond Compare 4\BCompare.exe
cmd28=""C:\Program Files\Beyond Compare 4\BCompare.exe""
param28=%p%n %t%m
path28=C:\Program Files\Beyond Compare 4\
menu28=Compare Files ( lowercase )
and

Code: Select all

button39=C:\Program Files\Beyond Compare 4\BCompare.exe
cmd39=""C:\Program Files\Beyond Compare 4\BCompare.exe""
param39=%Q"%P%N" "%T%M"
path39=C:\Program Files\Beyond Compare 4\
menu39=Compare Files ( uppercase )
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *JOUBE »

The case sensitivity of vars seems to me more a change within windows itself with the last (May) update. I haven't checked that out yet though.
Last edited by JOUBE on 2023-06-18, 07:40 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *Horst.Epp »

I found that my problem with %c1 and %c2 is caused by the broken support for 8.3 file names.
Using lower case c1 and c2 was by accident but it stopped to work with b7.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *petermad »

The support in TC 11.00b7 for short filenames if indeed broken in TC 11.00b7

I checked the support for 8.3 names among TC's parameters.

Affected parameters are: %n, %m, %o, %c, %s, %f, %l (only filenames, not path), %d, %D (only filenames, not path).
%e does not show anything at all

%p, %t and %b are not affected.

It is different between 32bit TC and 64bit TC what is put in instead of the affected parameters:
Test with Windows 7:
For 32bit TC the affected parameters are replaced by: ٣A
For 64bit TC the affected parameters are replaced by: Ømá followed by a tab-space.

Test with Windows 10:
For 32bit TC the affected parameters are replaced by: random characters (sometimes even the correct short filename)
For 64bit TC the affected parameters are replaced by: hná folloved by hex charracter 01
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *ghisler(Author) »

It's the same reason as the F4 problem:
viewtopic.php?t=79355
It will be fixed all together in beta 8.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b7] Comparing files with Total Commander shows "c:\TEMP\hãà" and "c:\TEMP\Hká"

Post by *petermad »

Is it also related to this bug: https://ghisler.ch/board/viewtopic.php?t=79345 :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply