APR holds everything in locale encoding on UNIX and UTF8 on Windows.

As far as I know UNIX system calls must accept *locale* strings, not
an arbitrary encoding (be it UTF8 or other). This may be Mac related,
could you point out exactly from where you deduced that strings passed
to "stat()" must be UTF8 ... that's a mighty large document to digest
:)

--
Lucian

On 7/17/07, Erik Huelsmann <[EMAIL PROTECTED]> wrote:
Reading [1], I conclude that applications should pass UTF-8 to BSD
functions such as stat() at all times. This suggests to me that
apr_filepath_encoding() should return APR_FILEPATH_ENCODING_UTF8.

Yet, looking at the sources, on any Unixy system, it returns
APR_FILEPATH_ENCODING_LOCALE.

Is this an oversight, or am I missing something else?

bye,


Erik.


[1] 
http://developer.apple.com/documentation/MacOSX/Conceptual/BPInternational/index.html#//apple_ref/doc/uid/10000171i

Reply via email to