locale and file functions
locale and file functions
- Subject: locale and file functions
- From: Jonas Maebe <email@hidden>
- Date: Wed, 1 Oct 2008 10:43:38 +0200
Hello,
What is the extent of the interaction between the current locale
setting (as in the LANG, LC_TYPE, etc environment variables) and the
encoding expected/returned by posix functions such as open(), stat()
etc? Are they always to be encoded using the current LC_TYPE, always
using UTF-8, or yet something else?
I also recently discovered http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringRef/Reference/reference.html#/
/apple_ref/c/func/CFStringGetFileSystemRepresentation
(CFStringGetFileSystemRepresentation). It's perfectly usable when
passing stuff to the posix api's, but when getting something back you
still have to know what the used encoding was if you want to operate
further on it.
Thanks,
Jonas
_______________________________________________
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