News for hackers. Stuff that matters.
Re:APFS is not safe to use with names which have Unicode nor... by bigin on Tuesday June 06, 2017 @09:17AM (#14496940)
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.
Re:APFS is not safe to use with names which have Unicode nor... by Someone on Tuesday June 06, 2017 @12:14PM (#14498364)
Every UTF-8 string is a sequence of bytes, but not every sequence of bytes is a UTF-8 string.
Re:APFS is not safe to use with names which have Unicode nor... by cryptonector on Tuesday June 06, 2017 @12:36PM (#14498588)
A terrible mistake.

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

Re:APFS is not safe to use with names which have Unicode nor... by chipotle_coyote on Tuesday June 06, 2017 @05:32PM (#14501552)
Quoting from https://developer.apple.com/library/content/documentation/Fi...

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

Re:APFS is not safe to use with names which have Unicode nor... by cryptonector on Tuesday June 06, 2017 @11:44PM (#14503585)
"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.

Re:APFS is not safe to use with names which have Unicode nor... by the_mitsuhiko on Tuesday June 06, 2017 @09:17AM (#14496947)
By that logic that was true for HFS+ as well.
Re:APFS is not safe to use with names which have Unicode nor... by bigin on Tuesday June 06, 2017 @09:25AM (#14497000)
HFS+ did perform normalization on a file system level and stored strings as utf-16 so it's not true for HFS+.
Re:APFS is not safe to use with names which have Unicode nor... by the_mitsuhiko on Tuesday June 06, 2017 @10:00AM (#14497241)
Pretty sure normalization was done in open() and not the fs. Normalization was performed even for fat32 sticks.
Re:APFS is not safe to use with names which have Unicode nor... by bigin on Tuesday June 06, 2017 @11:43AM (#14498076)
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.
Re:APFS is not safe to use with names which have Unicode nor... by the_mitsuhiko on Tuesday June 06, 2017 @11:49AM (#14498121)
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.