[8.50b12] Trailing space in dir name -> bad context menu

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
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[8.50b12] Trailing space in dir name -> bad context menu

Post by *MVV »

I have 3 files in F:\Stuff \0\ (note trailing space in folder name), and when I select them and open context menu, it is very truncated:
3 file(s)
-----
View
Edit
-----
Copy...
Rename...
Move...
Create shortcut
Delete
-----
Properties
However, when a copy of this folder exists as F:\Stuff\0\, all works fine. Don't know if it is TC or shell bug.
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

It isn't new for TC 8.50. It only happens when "Stuff " and "Stuff" both exist. Apparently when both folders exist "Stuff" is used instead of "Stuff " in this case. If the files are not found in "Stuff" the context menu is shortened.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This isn't a bug - Windows simply can't handle paths with trailing spaces. Therefore TC shows its own menu because the Windows function fails. It seems that the Windows function accesses the path without the trailing space when there is one. I cannot control this.

I'm sorry but I will not handle any further bug reports regarding trailing spaces.
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 »

OK, so it is a Windows bug, thank you for answer.
Topic may be moved to 'will not be changed'.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6975
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

ghisler(Author) wrote:This isn't a bug - Windows simply can't handle paths with trailing spaces. Therefore TC shows its own menu because the Windows function fails. It seems that the Windows function accesses the path without the trailing space when there is one. I cannot control this.

I'm sorry but I will not handle any further bug reports regarding trailing spaces.
Finally the right decision to stop that strange discussions about useless traling spaces in file or dir names.
:D
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I agree that they are useless, it was just the folder that I made for previous tests, and I entered it by accident while searching for temporary folder and noticed that. :D
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

BTW, Explorer shows normal context menu... But of course most programs started using this context menu don't work.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

When I enter "Stuff " dir in Explorer, it enters "Stuff" dir that is near the first one and then it can't enter any subdir. :D If I create text file using context menu, it appears in "Stuff " dir so I can't see it from Explorer. :lol: But if there are no dir "Stuff" near "Stuff ", all work fine.
However I can enter folder using "F:\Stuff \0" in TC command line. Then I can open Notepad, Word using context menu for text file, so Windows accepts such paths in general.
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:When I enter "Stuff " dir in Explorer, it enters "Stuff" dir that is near the first one and then it can't enter any subdir. :D If I create text file using context menu, it appears in "Stuff " dir so I can't see it from Explorer. :lol: But if there are no dir "Stuff" near "Stuff ", all work fine.
On my system (Windows XP) both situations work fine, using Explorer I can always browse to "Stuff ".
Post Reply