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

Reply via email to