2 ms·
> Operating systems do not enforce valid UTF-8 on filenames. macOS does. In fact, it goes a step farther and normalizes filenames (NFD). I'm not aware of any
by duskwuff 7y ago
> Operating systems do not enforce valid UTF-8 on filenames.
macOS does. In fact, it goes a step farther and normalizes filenames (NFD).
I'm not aware of any serious problems this has caused. It turns out that -- to a reasonable approximation -- nobody actually writes software which puts arbitrary binary data in filenames.
- np_tedious 7y agoDoes this also involve case sensitivity? I've encountered errors with nodejs imports where getting filename casing wrong didn't matter on OSX (dev environment) but caused errors in ci/prod (Linux). Never gave it much thought after fixing, but this reminded me
- duskwuff 7y agoNot precisely. File systems are case-insensitive by default on macOS, but this can be changed on a FS-by-FS basis. Unicode normalization is -- as far as I'm aware -- mandatory.