Workaround FUSE missing the generally broken Linux kernel charset support.
[captive.git] / src / client / fuse / op_mkdir.c
index a9a646f..ca3c81e 100644 (file)
@@ -28,6 +28,7 @@
 #include "op_mkdir.h"  /* self */
 #include "main.h"
 #include "gnomevfsresult.h"
+#include "utf8.h"
 
 
 int op_mkdir(const char *path,mode_t mode)
@@ -43,6 +44,8 @@ GnomeVFSResult errvfsresult;
        if (mode&S_IFMT)
                return -EPERM;
 
+  path=CAPFUSE_FILENAME_TO_UTF8_ALLOCA(path);
+
        if (GNOME_VFS_OK!=(errvfsresult=captive_directory_new_make(&captive_directory_object,capfuse_captive_vfs_object,
                                path,   /* pathname */
                                mode))) /* perm */