diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2021-02-16 13:16:54 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2021-02-16 13:16:54 +0900 |
commit | 551f1236a43ad014522d120dea1f136052879c0a (patch) | |
tree | 335a85d283743ee9623d2d6cc99e9fdb4be0a7ab /win32 | |
parent | 38f9c832e812f96fd06ca73688ff2baa528c119c (diff) |
merge revision(s) a681c484a3c5b9235c84bc5c253b4406e498e8cf: [Backport #17626]
Fixed codepage for utime [Bug #17626]
Should use the given codepage argument.
Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
---
test/ruby/test_file_exhaustive.rb | 7 +++++++
win32/win32.c | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
Diffstat (limited to 'win32')
-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 5985875fe2..cfc571f145 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -7399,7 +7399,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) { |