Rethinking fsinfo()
Rethinking fsinfo()
Posted Aug 22, 2020 18:50 UTC (Sat) by NYKevin (subscriber, #129325)In reply to: Rethinking fsinfo() by dezgeg
Parent article: Rethinking fsinfo()
Or, if you think letting people create files with ridiculous names was a bad idea to begin with, you could simply declare non-UTF-8 paths unsupported and spit out invalid JSON if the user tries to create one. Much userspace software already does something like that anyway (see for example Python 3's surrogateescape hack). But then a lot of parsers will work just fine the vast majority of the time, and break on an obscure condition that the average engineer may not even realize is possible. So that's probably not ideal...