diff options
author | S-H-GAMELINKS <[email protected]> | 2021-07-06 21:19:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-07-07 12:31:43 +0900 |
commit | 9952e9358ea73a1bda8d5f8c8672ee1c04892ce4 (patch) | |
tree | 1a88d159ef7f0b86c5fcbe709927998d7b6b2447 /string.c | |
parent | b1b7f997aeb8a09e863f4d6271ab38da179e246d (diff) |
Refactor rb_str_export and rb_str_export_locale function's
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4628
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1180,13 +1180,13 @@ rb_filesystem_str_new_cstr(const char *ptr) 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 |