• 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
Re: Unicode filenames with Apple File System and UIManagedDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode filenames with Apple File System and UIManagedDocument


  • Subject: Re: Unicode filenames with Apple File System and UIManagedDocument
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 07 Mar 2017 18:11:22 +0000

On 7 Mar 2017, at 18:00, Jens Alfke <email@hidden> wrote:
>
> On Mar 7, 2017, at 8:13 AM, email@hidden wrote:
>>
>>   NSFileManager *fm = [[NSFileManager alloc] init];
>>   const char *data = [name fileSystemRepresentation];
>>   NSString *filename = [fm stringWithFileSystemRepresentation:data length:strlen(data)];
>
> This is a no-op, since you’re calling two methods that perform inverse operations — `filename` will end up being identical to `name`.

AFAIK it isn’t a no-op (at least at present).  Right now, I rather suspect it’ll lead to decomposition and the replacement of Hangul characters in the range U+AC00 through U+D7A3, according to the rules in TN1150.

Unfortunately, because -fileSystemRepresentation doesn’t really know the underlying filesystem, this may or may not be appropriate, and I’d expect *in future* at some point the above really will be a no-op as a result.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


References: 
 >Unicode filenames with Apple File System and UIManagedDocument (From: email@hidden)
 >Re: Unicode filenames with Apple File System and UIManagedDocument (From: Jean-Daniel <email@hidden>)
 >Re: Unicode filenames with Apple File System and UIManagedDocument (From: email@hidden)
 >Re: Unicode filenames with Apple File System and UIManagedDocument (From: email@hidden)
 >Re: Unicode filenames with Apple File System and UIManagedDocument (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: why use extern "C"
  • Next by Date: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Previous by thread: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Next by thread: Re: Unicode filenames with Apple File System and UIManagedDocument
  • Index(es):
    • Date
    • Thread