1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding.c (enc_find): accept Encoding objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-04-26 16:17:01 +00:00
parent 8fabd0c551
commit 21e6862cd5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Apr 27 01:16:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* encoding.c (enc_find): accept Encoding objects.
Wed Apr 27 00:55:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* transcode.c (econv_opts): add newline option.

View file

@ -1037,7 +1037,7 @@ enc_list(VALUE klass)
static VALUE
enc_find(VALUE klass, VALUE enc)
{
return rb_enc_from_encoding(to_encoding(enc));
return rb_enc_from_encoding(rb_to_encoding(enc));
}
/*