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

So it is correct then, the file system doesn't concern itself with normalization. File names are stored internally as utf-8 strings which are just a sequence of bytes.


Every UTF-8 string is a sequence of bytes, but not every sequence of bytes is a UTF-8 string.


A terrible mistake.

APFS should have been normalization-preserving/normalization-insensitive.


Quoting from https://developer.apple.com/library/content/documentation/Fi...

"The case-insensitive variant of APFS is normalization-preserving, but not normalization-sensitive."


"The case-sensitive variant of APFS is both normalization-preserving and normalization-sensitive."

It should just always be form-preserving and form-INsensitive.

There is absolutely no reason to want the combination they give. It makes me suspect that they didn't bother separating case- and form-insensitivity, although I can't imagine why one wouldn't. It seems like.. a mistake. Someone misunderstood.


By that logic that was true for HFS+ as well.


HFS+ did perform normalization on a file system level and stored strings as utf-16 so it's not true for HFS+.


Pretty sure normalization was done in open() and not the fs. Normalization was performed even for fat32 sticks.


So you disagree with the linked blog post then? I mean this entire discussion is based on the premise that HFS+ performs normalization and APFS does not. The disrcepancy means that what used to happen automatically is now the responsibility of individual applications and the author hypothises that this means that shit will break.


Not sure what you want me to say. In my mind the current situation with APFS is a massive pain and was not well thought through.

Previously normalization (while terrible) was at least consistent. Now different APIs have widely different behaviour and it's even worse on the application level. What used to be a annoyance has now become absolute chaos with no guidance from apple.

My understanding of the article is effectively: AFPS on macOS in the current form is unusable for non-English users and I strongly agree with that. While it might be partially usable, in particular if you upgrade from an earlier mac was performed, it has a ton of really terrible edge cases most users will quickly run into.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: