summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/string.c b/string.c
index 2b126934c..054a1eb72 100644
--- a/string.c
+++ b/string.c
@@ -526,6 +526,12 @@ rb_external_str_new(const char *ptr, long len)
return rb_external_str_new_with_enc(ptr, len, rb_default_external_encoding());
}
+VALUE
+rb_locale_str_new(const char *ptr, long len)
+{
+ return rb_external_str_new_with_enc(ptr, len, rb_locale_encoding());
+}
+
static VALUE
str_replace_shared(VALUE str2, VALUE str)
{