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 21:16:23 UTC
svn commit: r565479 - /apr/apr/branches/0.9.x/file_io/unix/filepath.c
Author: jim
Date: Mon Aug 13 12:16:22 2007
New Revision: 565479
URL: http://svn.apache.org/viewvc?view=rev&rev=565479
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/0.9.x/file_io/unix/filepath.c
Modified: apr/apr/branches/0.9.x/file_io/unix/filepath.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/file_io/unix/filepath.c?view=diff&rev=565479&r1=565478&r2=565479
==============================================================================
--- apr/apr/branches/0.9.x/file_io/unix/filepath.c (original)
+++ apr/apr/branches/0.9.x/file_io/unix/filepath.c Mon Aug 13 12:16:22 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;
}