Re: saving files/folders in foreign language names
Re: saving files/folders in foreign language names
- Subject: Re: saving files/folders in foreign language names
- From: Clark Cox <email@hidden>
- Date: Tue, 1 Sep 2009 20:18:07 -0700
On Tue, Sep 1, 2009 at 2:55 PM, Kyle Sluder<email@hidden> wrote:
> On Tue, Sep 1, 2009 at 2:34 PM, Sean McBride<email@hidden> wrote:
>> There is no "the" filesystem. HFS may store decomposed, but other
>> systems may not. And different file systems have a different set of
>> allowable filenames. Some low-ASCII characters are invalid too.
>
> 99% of users are running HFS+, which is where this problem most often
> manifests itself.
>
>> That might be the best approach, depending on all the usual things. But
>> 'high-ASCII' filenames have been acceptable on the Mac for a very long
>> time, and do work.
>
> The problem is that the encoding used in the string literal might not
> be that used on disk. HFS+ is documented *not* to normalize input
> strings, so this matters.
Where is that documented?
<http://developer.apple.com/legacy/mac/library/technotes/tn2002/tn2078.html>
is pretty explicit that HFS+ is always normalized:
"HFS+ disks store file names as UTF-16 in an Apple-modified form of
Normalization Form D (decomposed)."
--
Clark S. Cox III
email@hidden
_______________________________________________
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