• 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: renaming a file with special/reserved characters in name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: renaming a file with special/reserved characters in name


  • Subject: Re: renaming a file with special/reserved characters in name
  • From: Michael Ash <email@hidden>
  • Date: Sat, 28 Feb 2009 11:07:35 -0500

On Fri, Feb 27, 2009 at 5:35 PM, Shawn Erickson <email@hidden> wrote:
> On Fri, Feb 27, 2009 at 2:15 PM, Martin Wierschin <email@hidden> wrote:
>
>> On 2009.02.27, at 5:58 AM, Michael Ash wrote:
>>
>>> HFS+ only accepts non-UTF-8 by URL-encoding (!) the non-UTF-8 bytes
>>
>> Wow, that's pretty horrific.
>
> It also isn't really correct. HFS+ doesn't use UTF-8 it uses and
> stores Unicode (fully decomposed and in canonical order).
>
> http://developer.apple.com/technotes/tn/tn1150.html#HFSPlusNames
>
> I don't think URL encode ever comes into play in HFS+ or in the POSIX
> APIs that takes UTF-8 (decomposed) paths... not sure what Michael is
> talking about.

$ python -c 'open("hello\xaa\xbb\xccworld", "w")';ls
helloª»Ìworld

Tested on 10.5.6 Intel. On 10.4 it evidently just fails.

Mike
_______________________________________________

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: renaming a file with special/reserved characters in name
      • From: Shawn Erickson <email@hidden>
References: 
 >renaming a file with special/reserved characters in name (From: Martin Wierschin <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Michael Ash <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Martin Wierschin <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Michael Ash <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Martin Wierschin <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Ken Thomases <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Martin Wierschin <email@hidden>)
 >Re: renaming a file with special/reserved characters in name (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: 'Prepare Content' not working for Object Controllers ?
  • Next by Date: Optimizing, uiview caching, and clearing that cached view.
  • Previous by thread: Re: renaming a file with special/reserved characters in name
  • Next by thread: Re: renaming a file with special/reserved characters in name
  • Index(es):
    • Date
    • Thread