Re:Maintain It with Zig
by dnautics on Wednesday September 08, 2021 @09:40PM
(#28465243)
MacOS filesystem is utf-8 strings with valid Unicode glyphs that are pinned to a certain revision of Unicode.
[ Parent
| on HN ]
> MacOS filesystem is utf-8 strings
APFS is utf8, HFS+ is utf16.
> with valid Unicode glyphs
That doesn’t really mean anything.
Apple’s fs do guarantee the paths are correct, as in, valid whatever encoding this has nothing to do with glyphs.
APFS also does not perform any normalisation while HFS+ uses a custom variant if NFD. While HFS+’s normalisation has its issues and critics, APFS’s lack of normalisation is probably worse: https://eclecticlight.co/2017/04/06/apfs-is-currently-unusab...