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:
parent
d2f04d332f
commit
04e95f8985
Notes:
git
2019-12-16 16:17:17 +09:00
2
file.c
2
file.c
@ -237,7 +237,7 @@ rb_str_encode_ospath(VALUE path)
|
|||||||
{
|
{
|
||||||
#if USE_OSPATH
|
#if USE_OSPATH
|
||||||
int encidx = ENCODING_GET(path);
|
int encidx = ENCODING_GET(path);
|
||||||
#ifdef _WIN32
|
#if 0 && defined _WIN32
|
||||||
if (encidx == ENCINDEX_ASCII) {
|
if (encidx == ENCINDEX_ASCII) {
|
||||||
encidx = rb_filesystem_encindex();
|
encidx = rb_filesystem_encindex();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user