Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

MacOS filesystem is utf-8 strings with valid Unicode glyphs that are pinned to a certain revision of Unicode.


> 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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: