diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 08:06:29 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-02 08:06:29 +0000 |
commit | dcc316b825abf8b9b975e6318b7aef904d686801 (patch) | |
tree | db89042ae33eb85340baa8b8ce0bfce22ca6ed83 /test | |
parent | 9b6125398f81ae359a67b00fcfab8cc08ebcbe8d (diff) |
merges r29438 from trunk into ruby_1_9_2.
--
* 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/branches/ruby_1_9_2@30035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 18ecb404be..a26ade075b 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -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 |