diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-20 02:16:31 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-20 18:34:04 +0900 |
commit | 5b98b2ce39ed979aec614365a2dc3e1c30052bca (patch) | |
tree | 975744f4a5cd9e523f8e319dd6d017c08580de21 /win32/file.c | |
parent | feea436febb50eb4265bd985a550e384c606122c (diff) |
win32: Use UTF-8 as filesystem encoding [Feature #12654]
Co-Authored-By: Dāvis Mosāns <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3948
Diffstat (limited to 'win32/file.c')
-rw-r--r-- | win32/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/file.c b/win32/file.c index 71320242e2..5c34bd42b4 100644 --- a/win32/file.c +++ b/win32/file.c @@ -347,7 +347,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na if (path_cp == INVALID_CODE_PAGE || rb_enc_str_asciionly_p(path)) { /* use filesystem encoding if expanding home dir */ path_encoding = rb_filesystem_encoding(); - cp = path_cp = system_code_page(); + cp = path_cp = code_page(path_encoding); } /* ignores dir since we are expanding home */ |