summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 15832a8c0a..fc6c78f234 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -5705,7 +5705,7 @@ rb_w32_uchmod(const char *path, int mode)
WCHAR *wpath;
int ret;
- if (!(wpath = filecp_to_wstr(path, NULL)))
+ if (!(wpath = utf8_to_wstr(path, NULL)))
return -1;
ret = _wchmod(wpath, mode);
free(wpath);