[8.52a] Errors with opening long paths

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[8.52a] Errors with opening long paths

Post by *MVV »

When I try using cd "long path" command from TC command line, TC only opens it partially (up to 259 characters) instead of jumping to desired file.

Pasting long path to editable path bar also doesn't work.

Moreover, when I run TOTALCMD.exe /o /L="long path", TC simply crashes.

Tested path length is 515 characters.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, this isn't supported, and there are currently no plans to support it. I will check why it crashes, though.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Ok, thank you for commenting it.
I don't use such long paths actually and noticed it by accident.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It was a bug in Delphi's system.pas unit (ParamCount/ParamStr). I have fixed it. By fixing it, such long names will work also in TC 32-bit. They already worked in TC 64-bit.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Nice that you've fixed it!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Still doesn't work in TC 9.0b1 x86.
To be exact, cd X:\long\long\long\path\to\dir works in both TC 8.52a and 9.0b1, but cd X:\long\long\long\path\to\dir\file.txt (i.e. jumping to file and not to dir) doesn't work in both.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I only fixed the former. Can you confirm that?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Jumping to dir with long path works in both 9.0b1 and 8.52a.
Jumping to file with long path doesn't work in both.
Post Reply