Rethinking fsinfo()
Rethinking fsinfo()
Posted Aug 25, 2020 19:02 UTC (Tue) by mathstuf (subscriber, #69389)In reply to: Rethinking fsinfo() by excors
Parent article: Rethinking fsinfo()
I agree that just stuffing paths into binary storage is the best solution. However, usually paths need displayed or the storage you're using has a human caring about it at some point in its lifetime. Especially if you're using a container format like JSON. It's nice and all, but a way to store arbitrary binary data without having to figure out how to encode it so that it is Unicode safe would have been much appreciated. (No, BSON don't fix this; they just change the window dressing from `{:"",}` into type-and-length-prefixed fields or type-and-NUL-terminated sequences). CBOR has binary data, but then library support is more widely lacking.
FWIW, I've spent a lot of time thinking about how to stuff paths into JSON: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p...
Posted Aug 26, 2020 19:43 UTC (Wed)
by unilynx (guest, #114305)
[Link] (2 responses)
Distributions might slowly make that option the default for new systems, sysadmins can opt-in faster themselves, unless they really have to deal with those few applications (which will hopefully disappear or become obsolete fast) that really, really want to create weird filenames.
Posted Aug 27, 2020 4:48 UTC (Thu)
by neilbrown (subscriber, #359)
[Link]
Posted Aug 29, 2020 11:29 UTC (Sat)
by flussence (guest, #85566)
[Link]
Rethinking fsinfo()
Rethinking fsinfo()
Excluding end-of-line characters is probably justifiable too. (or any control char ... I don't think we need TAB or DEL).
Anything else is parochial.
When I'm choosing a name to save my document from my GUI, why should I care about your inability to write safe shell scripts, or even have any understanding that "the shell" exists.
It is bad enough that I cannot put a '/' in my file names, why would you prevent me using '$'??
Rethinking fsinfo()