diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-16 11:19:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-16 16:16:54 +0900 |
commit | 04e95f8985066b4ae1e97b045efda98bdefa07bd (patch) | |
tree | 01a1a391db5b83a27c79a9506e19344ee34254aa /file.c | |
parent | d2f04d332f2ff04f25202ed38e23de526a9aea46 (diff) |
Get rid of infinite recursion at loading transcoder
Disable encoding US-ASCII path to filesystem on Windows too.
[Bug #16392]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2755
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ rb_str_encode_ospath(VALUE path) { #if USE_OSPATH int encidx = ENCODING_GET(path); -#ifdef _WIN32 +#if 0 && defined _WIN32 if (encidx == ENCINDEX_ASCII) { encidx = rb_filesystem_encindex(); } |