Wrong results of tc.name/ext with very long names

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Wrong results of tc.name/ext with very long names

Post by *Flint »

1. Create a custom column set with two columns: [=tc.name] and [=tc.ext].
2. Create several files with very long names (>130 characters) and switch to the new column set.
3. The name part is displayed incomplete, and the ext part does not contain the real extension but some other contens (see below for details).

After several experiments it seems to me that the current algorithm of TC is the following: the full file name (without path) is cut by 129 characters, and then the part of it before the last dot becomes the "name", and all the rest (from the dot to the 129th char) becomes the "ext" (or, if there is no dot within the first 129 chars, "ext" is empty).

Reproduced with TC 8.01 and 8.50β15, Win7 x64.

P.S. In case you don't have wide enough monitor to view the column contents, you can use cm_CopyFileDetailsToClip.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Confirmed.

[=tc.fullname] is cut at 129 characters. If you use multi-rename tool to rename a file to [=tc.fullname], the file name is cut at 129 characters.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Confirmed, thanks! It seems to be a limit of 259 bytes from when long names weren't supported yet.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Tested OK using TC8.50rc1 32bit.
Tested [=tc.fullname], [=tc.name] and [=tc.ext] with multi-rename tool and custom columns (copy details to clipboard).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Indeed, confirm fixed in 8.50rc1.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply