diff options
author | xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com> | 2021-02-14 19:43:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-14 19:44:41 +0900 |
commit | a681c484a3c5b9235c84bc5c253b4406e498e8cf (patch) | |
tree | 8a9b58c3739da367fff51db7752f18ded8ff1502 /win32/win32.c | |
parent | 416956afa6bd64894b0412100985a1a0de0ac480 (diff) | |
download | ruby-a681c484a3c5b9235c84bc5c253b4406e498e8cf.tar.gz |
Fixed codepage for utime [Bug #17626]
Should use the given codepage argument.
Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 9b81488e6a..b5d982b657 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -7400,7 +7400,7 @@ wutimensat(int dirfd, const WCHAR *path, const struct timespec *times, int flags static int w32_utimensat(int dirfd, const char *path, const struct timespec *times, int flags, UINT cp) { - WCHAR *wpath = mbstr_to_wstr(filecp(), path, -1, NULL); + WCHAR *wpath = mbstr_to_wstr(cp, path, -1, NULL); int ret = -1; if (wpath) { |