Skip to content

Commit

Permalink
* array.c (take_items): honor encoding of class name.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 23, 2013
1 parent 04c9bdb commit b79ba4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array.c
Expand Up @@ -3050,8 +3050,8 @@ take_items(VALUE obj, long n)
result = rb_ary_new2(n);
args[0] = result; args[1] = (VALUE)n;
if (rb_check_block_call(obj, idEach, 0, 0, take_i, (VALUE)args) == Qundef)
rb_raise(rb_eTypeError, "wrong argument type %s (must respond to :each)",
rb_obj_classname(obj));
rb_raise(rb_eTypeError, "wrong argument type %"PRIsVALUE" (must respond to :each)",
rb_obj_class(obj));
return result;
}

Expand Down

0 comments on commit b79ba4a

Please sign in to comment.