Author: jim Date: Mon Aug 13 12:18:16 2007 New Revision: 565480 URL: http://svn.apache.org/viewvc?view=rev&rev=565480 Log: In Mac OS X's VFS API file names are, by definition, canonically decomposed Unicode, encoded using UTF-8. Shortest rep also uses composed UTF-8 Modified: apr/apr/branches/1.2.x/file_io/unix/filepath.c Modified: apr/apr/branches/1.2.x/file_io/unix/filepath.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/file_io/unix/filepath.c?view=diff&rev=565480&r1=565479&r2=565480 ============================================================================== --- apr/apr/branches/1.2.x/file_io/unix/filepath.c (original) +++ apr/apr/branches/1.2.x/file_io/unix/filepath.c Mon Aug 13 12:18:16 2007 @@ -305,6 +305,10 @@ APR_DECLARE(apr_status_t) apr_filepath_encoding(int *style, apr_pool_t *p) { +#if defined(DARWIN) + *style = APR_FILEPATH_ENCODING_UTF8; +#else *style = APR_FILEPATH_ENCODING_LOCALE; +#endif return APR_SUCCESS; }