Normalisation of filenames
Normalisation of filenames
- Subject: Normalisation of filenames
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 01 Apr 2017 18:41:32 +0700
I tried (with case-sensitive HFS+ in macOS 12.4):
NSString *path = …
NSURL *url = [ NSURL fileURLWithPath: path isDirectory: NO ];
NSString *urlPath = url.path;
BOOL same = [ urlPath isEqualToString: path ];
for different values of path I got:
path = @“/ก่ี”; // consonant + mark + vowel → same = YES
path = @“/กี่”; // consonant + vowel + mark → same = YES
Note: these two paths also look identical in Finder.
I managed to store (using TextEdit) two of these identical looking files in the same folder.
Is this a bug in NSURL or expected behaviour?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden