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:
parent
99116da7f0
commit
35c794b26d
Notes:
git
2022-08-19 03:06:18 +09:00
1 changed files with 0 additions and 3 deletions
3
file.c
3
file.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue