View Issue Details

IDProjectCategoryView StatusLast Update
0001092Far ManagerPanelpublic2014-05-28 11:29
Reporterfarman Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.0 
Summary0001092: Wrong handling of trailing points and spaces in Filenames
Description
Problem 1:
Trailing Point of a Filename is handled as Extension (in most Cases ;) )
Problem 2:
New File with Trailing Space becomes wrong Filename


Test & Examples: Creating a new File via Editor (Shift-F4):
Apostrophe ' used here as a delimiter around the Filenames. So if you test the examples don't use them in filename.


***************************************************
1. Test with trailing '.':

RealName Panelview --> PanelView newFilename
---------- -------------- ---------- ------------
'123.1' 123 │1 --> ok ok (=like RealName)
'123.' 123 │ --> wrong ok
'123..' 123. │ --> wrong ok
'123...' 123.. │ --> wrong ok

Panelview of '123.' should be '123. │'.
A single trailing point should be handled as a part of the filename, not as an extension.
                               

***************************************************
2. Test with trailing Spaces:

Creating a file '234 ' becomes file '234'.
Creating a folder '234 ' becomes folder '234 '.
Should become the same.

RealName Panelview --> PanelView newFilename
---------- -------------- ---------- ------------
'234 ' 234 │ --> ok wrong (missing trailing Space)
'234 .' 234 . │ --> ok !!! ok
'234 . ' 234 . │ --> (ok) wrong
'234. .' 234. . │ --> ok !!! ok


Important: Creating File with surrounded quotation marks works fine. No quotation marks --> Errors.
RealName Panelview --> PanelView newFilename
---------- -------------- ---------- ------------
"234" 234 │ --> ok ok
"234 " 234 │ --> (ok) ok !!!

The doubled filename in Panelview looks a little strange and is somehow a problem in FAR because spaces can't be shown. It's very funny: you can create 20 or more Files or Folders with a lot of Spaces at the end and all are shown like the first one.
This is not a perfect solution for that issue but maybe usable:
- New Option in Settings (F9): "set Character for trailing spaces shown in panels" & maybe better: a special color...
By the way: for the people who don't like the extended features of filehandling in far:
- Setting: "Disable extended filehandling" (Handle Files/Folders like Explorer)


***************************************************
Remarks:
- NewFilename verified via Explorer and Far Rename (Shift-F6)
- Heavy work. I hope everything is right. ;)
Additional InformationFirst reported by me in
http://forum.farmanager.com/viewtopic.php?f=37&t=4512&start=15#p51754
TagsNo tags attached.
Build

Activities

JohnDoe

2014-05-28 11:29

updater   bugnote:0012441

Unable to reproduce in far 3 build 3924

Issue History

Date Modified Username Field Change
2009-10-01 10:17 farman New Issue
2014-05-28 11:29 JohnDoe Note Added: 0012441