string.c (rb_external_str_new): a new function to convert from
external encoding to internal encoding. if something went
wrong, it returns a string with the external encoding.
string.c (rb_external_str_new_with_enc): same as above besides
you can specify the source encoding.
string.c (rb_external_str_new): a new function to convert from
external encoding to internal encoding. if something went
wrong, it returns a string with the external encoding.
string.c (rb_external_str_new_with_enc): same as above besides
you can specify the source encoding.
ruby.c (ruby_set_argv): use rb_external_str_new()
ruby.c (set_arg0, ruby_script): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e