summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-16 11:19:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-16 16:16:54 +0900
commit04e95f8985066b4ae1e97b045efda98bdefa07bd (patch)
tree01a1a391db5b83a27c79a9506e19344ee34254aa /file.c
parentd2f04d332f2ff04f25202ed38e23de526a9aea46 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 5644656b443..c46377b9332 100644
--- a/file.c
+++ b/file.c
@@ -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();
}