I use a lot filelist from TC using %L or %UL
I have a very long archive folder name (recently generated) and I found that the exported path length is limited to 260 chars for %UL or %L but not for %WL.
The exported names are truncated without any warning could it be fixed ?
This is not a new bug as i did found the same behavior in TC8.52a..
MAXPATH for %L %F and %UL %UF
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, 259 chars is the maximum normal Windows programs can open (MAX_PATH=260, includes terminating 0 byte).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I understand this limitation but this is the target pgm that have to handle it not TC !ghisler(Author) wrote:Yes, 259 chars is the maximum normal Windows programs can open (MAX_PATH=260, includes terminating 0 byte).
Here we have a filelist that should not be impacted by this limitation and not produce wrong file name.
This is also in contradiction with all the following :
- %WL is producing the real filenames without limitation,
- %P%S is producing the real filenames without limitation
- %P%N is producing the real filename without limitation
Re: MAXPATH for %L %F and %UL %UF
Total Commander Forum Index -> TC Behaviour which will not be changed -> [TC8.01-8.51b5] %L, %UL, %WL with long name - bug or no?nsp wrote:This is not a new bug as i did found the same behavior in TC8.52a..
It is definitely a bug at least because filelist contains invalid truncated paths with no possibility to detect if they are truncated or not so target program can process wrong files/folders.
Safe options here are: 1) leave long paths as is, 2) filter long paths out from filelist, 3) show a warning with buttons leading to way #1 or #2.
Safe options here are: 1) leave long paths as is, 2) filter long paths out from filelist, 3) show a warning with buttons leading to way #1 or #2.
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
+100MVV wrote:It is definitely a bug at least because filelist contains invalid truncated paths with no possibility to detect if they are truncated or not so target program can process wrong files/folders.
Safe options here are: 1) leave long paths as is, 2) filter long paths out from filelist, 3) show a warning with buttons leading to way #1 or #2.
Imo, suggestions 1 or 3 are the preferred choices. (Personally i gravitate towards 3.)
Suggestion 2 still has the potential of changing the expected result with the users being unaware of the "hidden" alteration of their intent.