5 ms·
Posix file names can be any sequence of bytes other than '/' and 0
by brianush1 6y ago
Posix file names can be any sequence of bytes other than '/' and 0
- hamburglar 6y agoI guess that's true. I suspect the support for non-UTF8 names in modern tooling is very, very spotty, given how many config files and file formats that refer to other files use UTF-8 themselves. E.g. can you refer to one of these names in an nginx config? (just an example; I have no idea if its config is UTF-8 or not)
- benibela 6y agoI have a collection of non-utf8 and other problematic files to test such tools: https://github.com/benibela/nasty-files https://github.com/benibela/nasty-files You probably cannot clone the repo on Windows. It works well on Linux. But in KDE you could not delete it after checkout
- tyingq 6y agoAlso, filenames with one or more newlines bork a lot of Linux software.
- masklinn 6y agoAnd Windows file names can include unpaired surrogates, which are not allowed in UTF8 (that’s why WTF8 exists).