• 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: path encoding on the file systems?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: path encoding on the file systems?


  • Subject: Re: path encoding on the file systems?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 4 Mar 2003 22:36:10 -0800

On Tuesday, March 4, 2003, at 10:15 AM, Lance Bland wrote:

What is the encoding for paths on the file system?

is it always utf-8 on HFS+, UFS, and all internationalized versions of the OS install?

It depends on the file system. HFS, by default, uses MacRoman, but it could use a different encoding. HFS+ uses Unicode UTF-16, but it supports UTF-8 as well. UFS uses UTF-8, but not UTF-16.

HFS+ and UFS always use the same encoding, no matter what OS X locale is selected. HFS is a different story.

If I do a fopen(path, mode)

can path be encoded in utf-8 and always get to a file?

Yes, unless it's an HFS disk or some other legacy format, and then I doubt it.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

if (message.signature==FUNNY) steal(message.signature); else message=message->next;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >path encoding on the file systems? (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: (newbie) drawer problem
  • Next by Date: Re: Printing to edge of paper
  • Previous by thread: path encoding on the file systems?
  • Next by thread: user id unknown
  • Index(es):
    • Date
    • Thread