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.
Wrong results of tc.name/ext with very long names
Moderators: Hacker, petermad, Stefan2, white
Wrong results of tc.name/ext with very long names
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed, confirm fixed in 8.50rc1.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
Using TC 11.03 / Win10 x64
Using TC 11.03 / Win10 x64