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: white, Hacker, petermad, Stefan2

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

Re: Uppercased drive letter in Lister for unpacked files.

Post by *petermad »

Yes, also for [lefttabs], [righttabs] if you have saved tabs and switch to one of those tabs.

And for [LeftHistory] and [RightHistory] but not if it is only the entries with #n in them that has the capital drive letter
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Uppercased drive letter in Lister for unpacked files.

Post by *ghisler(Author) »

If the path= in sections [left] and [right] has an uppercase drive letter AND DrivesShowUpcase is not present OR set to -1 (or 1 of course), then Lister shows the directory info for folders with uppercase drive letter.
That's correct: -1 is undefined, so TC will not always change the drive letters. I will update the help.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Usher »

2ghisler(Author)
What is correct? -1 is defined in Help as a default value and it's definitely <=0 so according to Help it means "Show as lowercase" by default.
What changes do you want to write to Help?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Uppercased drive letter in Lister for unpacked files.

Post by *Horst.Epp »

Are I'm the only one which finds the disccussion about this very (un)importand feature or error
a liitle bit oversized :) :(
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

2Horst.Epp
Never coded for Linux, right? ;-P
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6429
Joined: 2003-02-06, 17:36 UTC
Location: Germany

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

Post by *Horst.Epp »

Usher wrote: 2022-08-21, 21:19 UTC 2Horst.Epp
Never coded for Linux, right? ;-P
Wrong :)
I even managed some years HP-UX servers and scripting was part of the job of course.
But in Windows I don't care about the case of Drive letters.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

What is correct? -1 is defined in Help as a default value and it's definitely <=0 so according to Help it means "Show as lowercase" by default.
That's exactly what isn't correct: Why should there be 0 and -1 if they both do the same?
0 was meant as "Show as lowercase", while -1 is "undefined", in most cases it's the same as "Show as lowercase", though.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

ghisler(Author) wrote: 2022-08-22, 07:10 UTC 0 was meant as "Show as lowercase", while -1 is "undefined", in most cases it's the same as "Show as lowercase", though.
But it wasn't.

I did some tests with older versions and there was a change in TC 7.50, when DrivesShowUpcase was added. You can run any older TC (f.e 7.04 or 6.03a) with a fresh ini, press Ctrl+T to open a new tab and select another drive from drive combobox, then go back to the first tab and close TC. A new tab will be saved as uppercased in [lefttabs] though [left] and [right] drive letters are lowercased when TC creates a fresh ini.

In TC7.50+ in such cases lowercased drive letters are saved. But without DrivesShowUpcase TC doesn't show the saved letter case as is when you turn on "Always show drive letter in tab title". And drive letter in environment variables (which can be used in [lefttabs] and [righttabs]) are uppercased:

Code: Select all

COMMANDER_DRIVE=C:
COMMANDER_EXE=C:\TotalCmd\TotalCmd.EXE
COMMANDER_INI=C:\TotalCmd\wincmd.ini
COMMANDER_PATH=C:\TotalCmd
For me default behaviour is not consistent now - either all should be shown as is or all lowercased.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

If you want all lowercase, just use DrivesShowUpcase=0. Where is the problem?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

Moderator message

Moved to Behaviour which will not be changed
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

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

Post by *Usher »

ghisler(Author) wrote: 2022-08-24, 07:24 UTC If you want all lowercase, just use DrivesShowUpcase=0. Where is the problem?
I want to see a drive letter case as is by default rather than some random mix-up. Otherwise it's hard to guess why sometimes drive letters are uppercased.

You shouldn't force displaying lowercase when DrivesShowUpcase is undefined, but you should create lowercase entries by default. However, for me it would be enough to see drive letter case as is in current directory (breadcrumb) bar and in tooltips when hovering mouse on inactive folder tab headers.

There is also another possibility - fix letter case in ini files after setting (adding/changing) DrivesShowUpcase to 0 or 1, but I don't know how to do it only once.
Andrzej P. Wozniak
Polish subforum moderator
Post Reply