apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Fogel <kfo...@newton.ch.collab.net>
Subject Re: [PATCH] Determining the character encoding used for paths in APR
Date Fri, 19 Jul 2002 15:29:59 GMT
Branko ─îibej <brane@xbc.nu> writes:
> Anyway, the intent here is to tell the user what the APR
> _implementation_ knows about the path encoding. On most platforms, APR
> doesn't do anything with the paths, so we know that information can be
> pulled from the locale. On Windows, we know when we'll return UTF-8,
> regardless of locale. The enum would only grow if we started doing
> something radically different in a port to a new system.
> 
> We need opinions from lots of Unix people here. Folks, don't be shy! :-)

:-)

+1, and I think I prefer the simplicity of Brane's original
implementation.

In fact, I wonder if we couldn't do it *entirely* with macros, since
the function call just compiles down to a single return statement
anyway.  Why not avoid the function call overhead entirely?

-K

Mime
View raw message