Refactor rb_str_export and rb_str_export_locale function's
This commit is contained in:
parent
b1b7f997ae
commit
9952e9358e
Notes:
git
2021-07-07 12:32:03 +09:00
4
string.c
4
string.c
@ -1180,13 +1180,13 @@ rb_filesystem_str_new_cstr(const char *ptr)
|
|||||||
VALUE
|
VALUE
|
||||||
rb_str_export(VALUE str)
|
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
|
VALUE
|
||||||
rb_str_export_locale(VALUE str)
|
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
|
VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user