* error.c (name_err_mesg_to_str): preserve encoding of inspection.

[ruby-core:29948]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-05-04 09:51:27 +00:00
parent 16c40ec1a5
commit e8249be9fc
3 changed files with 14 additions and 1 deletions

View file

@ -304,4 +304,12 @@ end.join
end
assert(!e.success?)
end
def test_nomethoderror
bug3237 = '[ruby-core:29948]'
str = "\u2600"
id = :"\u2604"
e = assert_raise(NoMethodError) {str.__send__(id)}
assert_equal("undefined method `#{id}' for #{str.inspect}:String", e.message, bug3237)
end
end