summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-18 18:31:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-19 03:05:53 +0900
commit35c794b26d406c39f90e188e3884003fe6aca532 (patch)
tree1f3ab426d8cf1e3ceccdf5ef928546b58e5242fc /file.c
parent99116da7f05633697177c09cf4de5080028d77f8 (diff)
downloadruby-35c794b26d406c39f90e188e3884003fe6aca532.tar.gz
Fixed by [Bug #18964]
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/file.c b/file.c
index 92338bb754..5265d3a3a5 100644
--- a/file.c
+++ b/file.c
@@ -4090,9 +4090,6 @@ static VALUE
str_shrink(VALUE 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;
}