• 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
POSIX paths and UTF-8 on Mac OS X...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

POSIX paths and UTF-8 on Mac OS X...


  • Subject: POSIX paths and UTF-8 on Mac OS X...
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 23 Nov 2005 08:37:27 -0800

I am in the process of porting some software the runs on Windows to
Mac OS X and I want to validate what I believe to be true on Mac OS X
and also understand any special requirements that exist.

I am fairly sure (and API docs support) that things like open and
fopen accept UTF-8 (ASCII is a subset of UTF-8, so of course it accept
traditional ASCII as well). Is this correct?

I do see in Core Foundation code that in the new 10.4 method that
returns the file system representation of of a CFString that UTF-8 is
used but that it also attempts to do some specific type of string
decomposition[1] (assume dealing with combining accents and the
likes). So my question what exactly is expected and/or required in a
UTF-8 string handed to something like fopen.

Also can a BOM exist at the head of the UTF-8 string or must I assure
that it doesn't exist.

I tried to find a good document that calls things out fully but the
best I could find was the UTF-8 is used.

Thanks,
-Shawn

[1] Note yet tracked down the code to that function.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: POSIX paths and UTF-8 on Mac OS X...
      • From: Adam Nohejl <email@hidden>
    • Re: POSIX paths and UTF-8 on Mac OS X...
      • From: Chris Ridd <email@hidden>
  • Prev by Date: Re: build STLport 5 under 10.4?
  • Next by Date: Re: POSIX paths and UTF-8 on Mac OS X...
  • Previous by thread: Re: build STLport 5 under 10.4?
  • Next by thread: Re: POSIX paths and UTF-8 on Mac OS X...
  • Index(es):
    • Date
    • Thread