[#16] swap file cannot be created for files with long names
Summary swap file cannot be created for files with long names
Queue Vim on VMS
Type Bug
State Accepted
Priority 1. Low
Owners
Requester sferencik (at) alpha (dot) polarhome (dot) com
Created 12/07/2010 (4892 days ago)
Due
Updated 02/19/2014 (3722 days ago)
Assigned
Resolved
Attachments

History
12/08/2010 Zoltan Arpadffy State ⇒ Accepted
 
12/07/2010 sferencik@alpha.polarhome.com Comment #2
Queue ⇒ Vim on VMS
Summary ⇒ swap file cannot be created for files with long names
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Reply to this comment
VMS has a limit of 39 chars for the file extension.

vim creates swap files by appending _sw% to the end of the extension.

Naturally, if the extension of the file is already 36+ characters, the 
swap file cannot be created:

$ vim a.123456789012345678901234567890123456
E303: Unable to open swap file for 
"a.123456789012345678901234567890123456", recovery impossible

Would it be possible for the swap file name to use just the first 35 
chars of the extension, before appending _sw%? Of course there would 
be ambiguity for similarly-named files:
a.12345678901234567890123456789012345a
a.12345678901234567890123456789012345b

Would this matter? Or is some kind of swap-file ambiguity already 
accepted (e.g. for multi-translation logical names)?
02/19/2014 Zoltan Arpadffy Comment #1 Reply to this comment
On ODS-5 file system there is no this limitation and it works well.
On ODS-3 needs to be fixed.