Filenames


RE: Filenames
#10
(2024-01-10, 18:01)Travis Cobbs Wrote: I don't believe that native file APIs on any OSes have problems with any characters that are valid to use, and filenames referenced inside LDraw files should not ever be accessible from the command line. Any shell script that wants to parse an LDraw file and pass bits and pieces around already is going to have to deal with spaces in the filenames. And I still feel that these specs aren't an appropriate place to try to enumerate potentially problematic characters when the people using the software to create LDraw files will never read the specs.
Thanks for the clarifications.

By definition if characters are 'valid to use', then they will work. But if you read the link I gave above you will see that there are a number of filing systems under Windows that have invalid characters. These are the characters in question.

I agree that users won't be reading the specs, but tool makers will, and they may find it useful. Tools could warn users about potential cross platform issues when writing or verifying the validity of files for example.

(2024-01-10, 23:03)Roland Melkert Wrote: I agree, and also modern filesystems will allow just about anything.

for example I tried this on ext4:
Code:
-rw-rw-r-- 1 roland roland 0 Jan 10 23:57 '   <>:"\?'$'\n''*&#|  '

It's all the 'special' characters mentioned above except the slash, it even has spaces before, after and a new line in it.
Windows has filing systems that are still problematic though right? See the link I gave above for more details on this.

Again, I'm not trying to ban any characters at all. None. They are all valid. The current wording in the specs says that a few special characters "should be avoided", which is not a ban. If it said "must be avoided", that would be an outright ban.

So the question arises: Should the specification document take a position on whether cross platform compatibility and URL compatibility is a good thing at all?
Personally I think it is useful for the reasons I've given. If others think so too, then I'd like to see the list of problem characters extended. It's never going to be a complete solution to cross platform compatibility (since the user can do what they like) but it can't hurt either right?
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Filenames - by Toby Nelson - 2024-01-08, 21:02
RE: Filenames - by Orion Pobursky - 2024-01-08, 21:32
RE: Filenames - by Roland Melkert - 2024-01-08, 21:56
RE: Filenames - by Toby Nelson - 2024-01-09, 10:11
RE: Filenames - by Travis Cobbs - 2024-01-09, 17:06
RE: Filenames - by Toby Nelson - 2024-01-10, 10:58
RE: Filenames - by Toby Nelson - 2024-01-10, 11:23
RE: Filenames - by Travis Cobbs - 2024-01-12, 1:40
RE: Filenames - by Toby Nelson - 2024-01-12, 15:01
RE: Filenames - by Orion Pobursky - 2024-01-12, 16:51
RE: Filenames - by Travis Cobbs - 2024-01-10, 18:01
RE: Filenames - by Roland Melkert - 2024-01-10, 23:03
RE: Filenames - by Toby Nelson - 2024-01-11, 12:19
RE: Filenames - by Roland Melkert - 2024-01-11, 22:38
RE: Filenames - by Toby Nelson - 2024-01-14, 8:41

Forum Jump:


Users browsing this thread: 4 Guest(s)