Uppercased drive letter in Lister (not only for unpacked files)

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, Stefan2, white

User avatar
Usher
Power Member
Power Member
Posts: 1489
Joined: 2011-03-11, 10:11 UTC

Uppercased drive letter in Lister (not only for unpacked files)

Post by *Usher »

By default TC uses lowercase drive letters. You can see for example in the Lister title bar after pressing F3, something like:

Code: Select all

c:\Temp\test.jpg
However, when you want to view files packed in zip, 7z, rar etc. TC unpackes them to %TEMP% subfolder and Lister always shows drive letter uppercased - just as it is saved in %TEMP% variable, something like:
in Windows XP

Code: Select all

C:\DOCUME~1\USER\LOCALS~1\TEMP\_tc\test.jpg
in newer systems

Code: Select all

C:\Users\User\AppData\Local\Temp\_tc\test.jpg
You can see such differences saved in [LastTracks] section in wincmd.ini, when playing packed multimedia files in Lister.
Last edited by Usher on 2022-08-21, 21:10 UTC, edited 1 time in total.
Regards from Poland
Andrzej P. Wozniak
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43759
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

DrivesShowUpcase is currently not used in Lister. I will consider it.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43759
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

This should be fixed in TC 10.51 RC1, please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 11880
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

This should be fixed in TC 10.51 RC1, please test it.
Sorry - DrivesShowUpcase=0 has no effect in Lister's Title bar when opening files inside archives.

Tested with TC 10.51rc1 32bit and 64bit under WIndows 7 and 10 - also with a fresh ini file.

But DrivesShowUpcase does now have effect when opening a separate instance of Lister by using the /S=L command line parameter.
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43759
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

Sorry - DrivesShowUpcase=0 has no effect in Lister's Title bar when opening files inside archives.
Confirmed - that's not one of the cases I tried. Any others?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 11880
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

Any others?
Well not exactly the same but if I open a file on a Windows Workgroup Network using the "Show administrative shares" the Server name part of the path is all capitalized. But if I open a named share it si not captalized.
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43759
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

The file lists are not affected by DrivesShowUpcase. The same as you observe also happens when you open the "Computer" virtual folder. This is intentional.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1489
Joined: 2011-03-11, 10:11 UTC

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Usher »

ghisler(Author) wrote: 2022-08-11, 08:09 UTC This should be fixed in TC 10.51 RC1, please test it.
Nothing has changed for unpacked files. And it's broken now for other files when viewed with Lister.

Real case - TC started with default settings, viewing its own file and folder:

Code: Select all

c:\TotalCmd\DEFAULT.BAR
c:\TotalCmd\
32-bit TC shows in Lister:

Code: Select all

c:\TotalCmd\dEFAULT.BAR
c:\totalCmd\
64-bit TC shows in Lister:

Code: Select all

C:\TotalCmd\dEFAULT.BAR
C:\totalCmd\
As you can see, 64-bit Lister always uppercases drive letter, and both versions revert case of the first character in the last path element.
Regards from Poland
Andrzej P. Wozniak
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 43759
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

Yes, I changed the upper-/lowercase character in the wrong place, so it only worked when a path+file name was passed to Lister, not when they were passed separately as it is the case for example for archives.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 11880
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

2Usher
32-bit TC shows in Lister:

Code: Select all

c:\TotalCmd\dEFAULT.BAR
c:\totalCmd\
64-bit TC shows in Lister:

Code: Select all

C:\TotalCmd\dEFAULT.BAR
C:\totalCmd\
Hmm, here it shows the same in 32bit and 64bit:

Code: Select all

c:\TotalCmd\dEFAULT.BAR
c:\totalCmd\
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1489
Joined: 2011-03-11, 10:11 UTC

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Usher »

I can provide a screenshot taken yesterday in Windows 7: tc1051-noUpcase.png. You can see default lister background (white color, while I keep bright yellow color in the working wincmd.ini). I'm not sure what ini has been used then as today I cannot reproduce those results, but I'm sure that "DrivesShowUpcase" is absent in all ini files.
It looks like drive letter is randomly uppercased, here's a screenshot from today, taken with working wincmd.ini: tc1051-randomUpcase.png - it's always lower case for drive c: and Upper case for drive D:
TC run with a fresh ini shows both lower case c: and d:.
Regards from Poland
Andrzej P. Wozniak
User avatar
petermad
Power Member
Power Member
Posts: 11880
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

I just tried all my drives (A,C,D,E,F,G,H,Z) and the setting of DrivesShowUpcase is honored in Listers title bar for all of them with TC 10.51rc1 x64 on Windows 7. https://madsenworld.dk/tcmd/listerdriveletter.png

I also noticed that when using DrivesShowUpcase=1 the first letter of the file name is always in uppercase (just like it is always in lowercase with DrivesShowUpcase=0). Removing DrivesShowUpcase from the ini file gives the same results as DrivesShowUpcase=0 - as it should.
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1489
Joined: 2011-03-11, 10:11 UTC

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Usher »

Here's a screenshot from Windows XP with working wincmd.ini and no DrivesShowUpcase present: tc1051-randomUpcaseXP.png.
As you can see, this time drive C: is Uppercased, drive d: and other drives are lowercased. Language English internal, wincmd.ini in UTF-16 (the same was for working wincmd.ini in Windows 7). Clean ini shows all drives lowercased in Windows XP (EDIT: both ANSI and UTF-16 ini).
Last edited by Usher on 2022-08-15, 13:09 UTC, edited 1 time in total.
Regards from Poland
Andrzej P. Wozniak
User avatar
petermad
Power Member
Power Member
Posts: 11880
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

2Usher
Hmm, tried in my Windows XP with a Unicode ini file: https://madsenworld.dk/tcmd/listerdriveletterXP.png

Still lowercase drive letter in Lister, but my Windows XP is 32 bit, and you say you only experience it with 64bit TC so I guess your XP is 64 bit?

I get the same for my c: drive, and I only have c: and d: drive on under my XP computer.

Sorry for asking this, but you don't show TC's title bar in your screenshots, are you sure you are running TC 10.51rc1?
License #524 (1994)
Danish Total Commander Translator
TC 10.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (21H2) 64bit, 'Everything' 1.4.1.1021 (x64)
TC 3.40b4 on Android 6 & 12
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1489
Joined: 2011-03-11, 10:11 UTC

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Usher »

Random drive letter upper case is for both TC 32- and 64-bit in Windows 7 and for TC 32-bit in XP. It's definitely TC 10.51rc1 - see lowercased first letter of directory or filename? TC 10.50 in Windows XP shows C:\IO.SYS (all uppercased) and d:\IO.SYS (d: and other drives properly lowercased).
Regards from Poland
Andrzej P. Wozniak
Post Reply