Permalink
Browse files

windows: support utf8 in uv_fs functions

fixes #201
  • Loading branch information...
1 parent c903bc3 commit 72b5976e8380f0baebf749c85ee102576c6a81de Igor Zinkovsky committed Oct 12, 2011
Showing with 272 additions and 115 deletions.
  1. +1 −0 include/uv-private/uv-win.h
  2. +1 −1 src/win/fs-event.c
  3. +263 −107 src/win/fs.c
  4. +3 −3 src/win/winapi.c
  5. +4 −4 src/win/winapi.h
@@ -345,6 +345,7 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
HANDLE close_handle;
#define UV_FS_PRIVATE_FIELDS \
+ wchar_t* pathw; \
int flags; \
int last_error; \
struct _stati64 stat; \
View
@@ -326,7 +326,7 @@ void uv_process_fs_event_req(uv_loop_t* loop, uv_req_t* req,
filename,
utf8size);
if (utf8size) {
- filename[utf8size] = L'\0';
+ filename[utf8size] = '\0';
} else {
free(filename);
filename = NULL;
Oops, something went wrong.

0 comments on commit 72b5976

Please sign in to comment.