File list shows 'name file ending with dot'?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Cubex
Junior Member
Junior Member
Posts: 9
Joined: 2016-08-24, 07:45 UTC

File list shows 'name file ending with dot'?

Post by *Cubex »

This "error" is not a problem at the same time developing versions.
TC versions 7.55a and later not displayed in the file listing dot at the end of the file name.
I'm surprised it did not warn anyone yet.
TC 9b16 in multi rename tool displays dots.

https://s3.postimg.org/mvw7q6nzn/TCfilename_Ending_Dot.png

If a new version again show the true state it would be OK.
I'm using translator. I am sorry.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Dots or spaces at the end of filename are cut by Windows API functions so it is a question how older TC versions could display them. And, since most programs use these API, it is not safe to use tricks like \\?\ prefix for adding such dots and spaces.
User avatar
Dalai
Power Member
Power Member
Posts: 9968
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

TC never displays the dot that separates the file name from its extension part - I'm talking about the file lists here - unless the option to show the extension right behind the file name is enabled. See Options > Display > Tabstops > Show file extension.

In all other places (e.g. MRT, dir sync) where the extension is not separated from the file name part, TC shows the dot, of course (what else should TC do?). The function of the [E] checkbox in MRT is explained in the help file, but just for the record:
TC help wrote:[E] Also replace the search text within the extension.
So if you don't check [E] the MRT doesn't replace the dot with anything and that's why you can see it in MRT.

I don't think older TC versions behaved any different.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Such dots at the end are not allowed in Windows file names. Creating them is only possible with dirty tricks, and it will cause lots of problems. I do not recommend doing this, and I will not support them in file names.
Author of Total Commander
https://www.ghisler.com
Cubex
Junior Member
Junior Member
Posts: 9
Joined: 2016-08-24, 07:45 UTC

Post by *Cubex »

It to me very very sorry. :( It is not important how the files were created (Linux), but there are and they have to show how they are stored.
NTFS can do it and there is no reason to ignore it.
What do Total Commander does not support and is displaying incorrectly?
I took the job because I like and I want TC was perfect. Here is a summary of what I found out.

Code: Select all

Program 					  Show dot		Show space dot space
Total Commander 7.04a 	  YES				NO
Windows Explorer			  YES				YES
DOS Command in Win.		  YES				YES
UnrealCommander	2.02	  YES				YES
Multi Commander Last		 YES				YES
SpeedCommander 15			 YES				YES
XYplorer						 YES				YES
FreeCommander 200902b		YES				YES
FreeCommander XE last		YES				YES
Qdir 6.39						YES				YES
FAR manager lastBeta		 YES				YES
AltapSalamander 2.54		 YES				YES
Commander from y.2007		YES				YES
FileNavigator y.2009		 YES				YES
FileMaster 1.2 y.2009		YES				YES
...
DoubleCommander 0.54b		 NO				YES
DoubleCommander 0.55a		 NO				NO
TotalCommander >=7.55a		NO				NO
SEE THIS https://postimg.org/image/etfzpz9kj/
Last edited by Cubex on 2016-10-06, 13:50 UTC, edited 2 times in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think you should describe first how you get such names, because you can't get them using Explorer, TC or most (maybe even all) text editors. And you can't do much with them using Explorer, TC or most other programs, e.g. Explorer is even unable to rename folder with trailing dot in name.

When extensions are aligned, TC doesn't show dots between filename and extension, and it is ok. However it is interesting why TC doesn't show such dot when extensions are not aligned (but does show such dot in rename field)...

BTW I've opened TC 7.04a and it doesn't show trailing dot in file name too...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I managed to create such files with this command:
copy "test.txt" "\\?\c:\test\test2.txt."
This bypasses Windows functions and sends the name directly to the underlying NTFS file system.

However, such Names on my Linux server (Raspberry PI) will be shown as TQGI2X~5 or similar instead! Apparently the Samba server makers know that such names are forbidden on Windows.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

A simple freaking way of creating such file/folder name is typing something like "name . \" in Shift+F6 rename window. :D
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's not the same - the name ends with a space in this case, not a dot. So the extension is a single space. You can't currently create files in TC which end with a dot.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe TC should also show dot in extension in case of "name . " names (i.e. with whitespaces after dot)? I think it may reduce problems in case of such names since these are not standard too...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have considered it, but it would be very confusing:
"name .ext" -> no dot
"name . " -> dot
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think it is more confusing that you see no extension but it exists... and such special situations are not common.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I prefer not to change that. It's a theoretical discussion anyway since most users will not even know how to create such files.
Author of Total Commander
https://www.ghisler.com
Post Reply