summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 67f1e33b17..a80f60555f 100644
--- a/string.c
+++ b/string.c
@@ -256,7 +256,7 @@ rb_str_coderange_scan_restartable(const char *s, const char *e, rb_encoding *enc
static inline void
str_enc_copy(VALUE str1, VALUE str2)
{
- rb_enc_internal_set_index(str1, ENCODING_GET(str2));
+ rb_enc_set_index(str1, ENCODING_GET(str2));
}
static void