From 04e95f8985066b4ae1e97b045efda98bdefa07bd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Dec 2019 11:19:59 +0900 Subject: Get rid of infinite recursion at loading transcoder Disable encoding US-ASCII path to filesystem on Windows too. [Bug #16392] --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 5644656b44..c46377b933 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(); } -- cgit v1.2.1