On Jul 17, 2007, at 3:12 PM, Erik Huelsmann wrote:
Which suggests that apr_filepath_encoding should return APR_FILEPATH_ENCODING_UTF8, if I'm not mistaken.
I think that's the correct thing to do on Darwin.
But generally applications won't work with these non-UTF8 paths if they are well behaving MacOSX apps themselves, right? That reduces chances of being fed garbage. But, other OSes can't guarantee UTF-8ness either, because LANG (and LC_CTYPE) can be user-settings, which can differ for different users, but path names are the same for all users. So on Linux you can't be too sure either.
Yeah, it's not a problem in a well-behaved world, and in practice that's been working out, but it is something to be aware of, because it is occasionally a reality.
-wsv