apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucian Adrian Grijincu" <lucian.griji...@gmail.com>
Subject Re: apr_filepath_encoding on Darwin
Date Tue, 17 Jul 2007 12:31:45 GMT
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


On 7/17/07, Erik Huelsmann <ehuels@gmail.com> 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
> 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

View raw message