apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Zhakov" <chemo...@gmail.com>
Subject Re: apr_filepath_encoding on Darwin
Date Thu, 19 Jul 2007 10:46:17 GMT
On 7/17/07, Erik Huelsmann <ehuels@gmail.com> wrote:
> On 7/17/07, Lucian Adrian Grijincu <lucian.grijincu@gmail.com> wrote:
> > 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
> > :)
>
> Sure. First sentence of the last paragraph under "File Systems and
> Unicode Support":
>
> "All BSD system functions expect their string parameters to be in
> UTF-8 encoding and nothing else."
>
Another bit of information: nl_langinfo(CODESET) always returns
US-ASCII regardless of LC_CTYPE value on Mac OS.

-- 
Ivan Zhakov

Mime
View raw message