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 3b2e58f5cd..5619c75b9f 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -6032,7 +6032,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);