Get rid of infinite recursion at loading transcoder

Disable encoding US-ASCII path to filesystem on Windows too.
[Bug #16392]
This commit is contained in:
Nobuyoshi Nakada 2019-12-16 11:19:59 +09:00
parent d2f04d332f
commit 04e95f8985
Notes: git 2019-12-16 16:17:17 +09:00

2
file.c
View File

@ -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();
}