1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed by [Bug #18964]

This commit is contained in:
Nobuyoshi Nakada 2022-08-18 18:31:34 +09:00
parent 99116da7f0
commit 35c794b26d
Notes: git 2022-08-19 03:06:18 +09:00

3
file.c
View file

@ -4090,9 +4090,6 @@ static VALUE
str_shrink(VALUE str) str_shrink(VALUE str)
{ {
rb_str_resize(str, RSTRING_LEN(str)); rb_str_resize(str, RSTRING_LEN(str));
// expand_path on Windows can sometimes mutate the string
// without clearing its coderange
ENC_CODERANGE_CLEAR(str);
return str; return str;
} }