ruby-changes:66707
From: S-H-GAMELINKS <ko1@a...>
Date: Wed, 7 Jul 2021 12:31:59 +0900 (JST)
Subject: [ruby-changes:66707] 9952e9358e (master): Refactor rb_str_export and rb_str_export_locale function's
https://git.ruby-lang.org/ruby.git/commit/?id=9952e9358e From 9952e9358ea73a1bda8d5f8c8672ee1c04892ce4 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS <gamelinks007@g...> Date: Tue, 6 Jul 2021 21:19:57 +0900 Subject: Refactor rb_str_export and rb_str_export_locale function's --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/string.c b/string.c index 827bc89..864fcc8 100644 --- a/string.c +++ b/string.c @@ -1180,13 +1180,13 @@ rb_filesystem_str_new_cstr(const char *ptr) https://github.com/ruby/ruby/blob/trunk/string.c#L1180 VALUE rb_str_export(VALUE str) { - return rb_str_conv_enc(str, STR_ENC_GET(str), rb_default_external_encoding()); + return rb_str_export_to_enc(str, rb_default_external_encoding()); } VALUE rb_str_export_locale(VALUE str) { - return rb_str_conv_enc(str, STR_ENC_GET(str), rb_locale_encoding()); + return rb_str_export_to_enc(str, rb_locale_encoding()); } VALUE -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/