Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: support utf8 in uv_fs functions
Browse files Browse the repository at this point in the history
fixes #201
  • Loading branch information
Igor Zinkovsky committed Oct 12, 2011
1 parent c903bc3 commit 72b5976
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 115 deletions.
1 change: 1 addition & 0 deletions include/uv-private/uv-win.h
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion src/win/fs-event.c
Expand Up @@ -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;
Expand Down

0 comments on commit 72b5976

Please sign in to comment.