diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-20 02:16:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-20 18:34:04 +0900 |
commit | 5b98b2ce39ed979aec614365a2dc3e1c30052bca (patch) | |
tree | 975744f4a5cd9e523f8e319dd6d017c08580de21 /win32/win32.c | |
parent | feea436febb50eb4265bd985a550e384c606122c (diff) |
win32: Use UTF-8 as filesystem encoding [Feature #12654]
Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3948
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 59040824ad..4f0c0d29c1 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2270,7 +2270,7 @@ rb_w32_conv_from_wstr(const WCHAR *wstr, long *lenp, rb_encoding *enc) long len; char *ptr; - if (NIL_P(str)) return wstr_to_filecp(wstr, lenp); + if (NIL_P(str)) return wstr_to_utf8(wstr, lenp); *lenp = len = RSTRING_LEN(str); memcpy(ptr = malloc(len + 1), RSTRING_PTR(str), len); ptr[len] = '\0'; |