Re: path encoding on the file systems?
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.