On Jun 16, 2017, at 1:57 AM, Quincey Morris 
<quinceymor...@rivergatesoftware.com> wrote:
> 
> FWIW, the WWDC session on APFS is worth watching:
> 
>       https://developer.apple.com/videos/play/wwdc2017/715/ 
> <https://developer.apple.com/videos/play/wwdc2017/715/>
> 
> because it relates to an inconclusive discussion we had recently about iOS 
> file names with normalization issues “breaking” existing apps.
> 
> If I understand it correctly, Apple has abandoned the ridiculous idea of 
> making iOS APFS normalization-sensitive (that is, of treating strings 
> differing only in normalization as different file names).

True, but it should be noted (as they point out in the session presentation) 
that normalization-insensitive is different than normalizing.  So, if you 
enumerate a directory's contents, the strings you get back for file names will 
be exactly as they were originally passed in to the APIs and not necessarily 
normalized.  That means, if you compare against some other string, you will 
have to do a normalization-insensitive compare to get the same "equality" test 
that the file system uses.  Mind you, you should basically never do that sort 
of comparison.  Always use the appropriate APIs to look up or compare file 
system entries.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com
  • APFS Quincey Morris
    • Re: APFS Ken Thomases

Reply via email to