You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2007/08/13 14:34:07 UTC

svn commit: r565326 - /apr/apr/trunk/file_io/unix/filepath.c

Author: jim
Date: Mon Aug 13 05:34:06 2007
New Revision: 565326

URL: http://svn.apache.org/viewvc?view=rev&rev=565326
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/trunk/file_io/unix/filepath.c

Modified: apr/apr/trunk/file_io/unix/filepath.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/filepath.c?view=diff&rev=565326&r1=565325&r2=565326
==============================================================================
--- apr/apr/trunk/file_io/unix/filepath.c (original)
+++ apr/apr/trunk/file_io/unix/filepath.c Mon Aug 13 05:34:06 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;
 }