ruby-changes:59270
From: Nobuyoshi <ko1@a...>
Date: Mon, 16 Dec 2019 16:17:18 +0900 (JST)
Subject: [ruby-changes:59270] 04e95f8985 (master): Get rid of infinite recursion at loading transcoder
https://git.ruby-lang.org/ruby.git/commit/?id=04e95f8985 From 04e95f8985066b4ae1e97b045efda98bdefa07bd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> 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] diff --git a/file.c b/file.c index 5644656..c46377b 100644 --- a/file.c +++ b/file.c @@ -237,7 +237,7 @@ rb_str_encode_ospath(VALUE path) https://github.com/ruby/ruby/blob/trunk/file.c#L237 { #if USE_OSPATH int encidx = ENCODING_GET(path); -#ifdef _WIN32 +#if 0 && defined _WIN32 if (encidx == ENCINDEX_ASCII) { encidx = rb_filesystem_encindex(); } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/