mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* error.c (syserr_initialize): set the encoding of Errno::*#message
as locale. [ruby-dev:42358] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
47cb5a93e5
commit
44691b901e
3 changed files with 10 additions and 0 deletions
|
@ -312,4 +312,8 @@ end.join
|
|||
e = assert_raise(NoMethodError) {str.__send__(id)}
|
||||
assert_equal("undefined method `#{id}' for #{str.inspect}:String", e.message, bug3237)
|
||||
end
|
||||
|
||||
def test_errno
|
||||
assert_equal(Encoding.find("locale"), Errno::EINVAL.new.message.encoding)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue