[8.52a] Errors with opening long paths

Please report only one bug per message!

Moderators: Stefan2, white, sheep, Hacker

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

[8.52a] Errors with opening long paths

Post by *MVV » 2015-10-24, 11:56 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2015-10-26, 10:42 UTC

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
http://www.ghisler.com

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

Post by *MVV » 2015-10-26, 11:10 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2015-10-29, 11:09 UTC

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
http://www.ghisler.com

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

Post by *MVV » 2015-10-29, 13:02 UTC

Nice that you've fixed it!

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

Post by *MVV » 2016-06-12, 10:43 UTC

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: 36255
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2016-06-12, 15:49 UTC

I only fixed the former. Can you confirm that?
Author of Total Commander
http://www.ghisler.com

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

Post by *MVV » 2016-06-12, 16:08 UTC

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