• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Normalisation of filenames
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Normalisation of filenames
      • From: Quincey Morris <email@hidden>
  • Next by Date: Re: Normalisation of filenames
  • Next by thread: Re: Normalisation of filenames
  • Index(es):
    • Date
    • Thread