From 3780e128230618bc3bddc9b3942ee149fadf4ca2 Mon Sep 17 00:00:00 2001 From: Chris Bank Date: Sat, 2 Nov 2013 05:00:50 +0400 Subject: [PATCH] fsevents: support japaneese characters in path --- src/unix/fsevents.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/unix/fsevents.c b/src/unix/fsevents.c index b6d27467..d8603242 100644 --- a/src/unix/fsevents.c +++ b/src/unix/fsevents.c @@ -223,9 +223,7 @@ int uv__fsevents_init(uv_fs_event_t* handle) { handle->realpath_len = strlen(handle->realpath); /* Initialize paths array */ - path = CFStringCreateWithCString(NULL, - handle->filename, - CFStringGetSystemEncoding()); + path = CFStringCreateWithFileSystemRepresentation(NULL, handle->filename); paths = CFArrayCreate(NULL, (const void**)&path, 1, NULL); latency = 0.15;