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 () | |
tree | 975744f4a5cd9e523f8e319dd6d017c08580de21 /localeinit.c | |
parent | feea436febb50eb4265bd985a550e384c606122c (diff) |
win32: Use UTF-8 as filesystem encoding [Feature #12654]
Co-Authored-By: Dāvis Mosāns <[email protected]>
Notes: Merged: https://.com/ruby/ruby/pull/3948
-rw-r--r-- | localeinit.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -123,8 +123,9 @@ Init_enc_set_filesystem_encoding(void) idx = ENCINDEX_US_ASCII; #elif defined _WIN32 char cp[SIZEOF_CP_NAME]; - const UINT codepage = ruby_w32_codepage[1] ? ruby_w32_codepage[1] : - AreFileApisANSI() ? GetACP() : GetOEMCP(); CP_FORMAT(cp, codepage); idx = rb_enc_find_index(cp); if (idx < 0) idx = ENCINDEX_ASCII; |