diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-11 05:15:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-11 05:15:03 +0000 |
commit | 44691b901e4d93debf64af33d4349662553e61e5 (patch) | |
tree | a4370e0d7efab45c065f085caf597a233ecf978e /error.c | |
parent | 47cb5a93e50c26114434dddb3008e5e4912a76f5 (diff) | |
download | ruby-44691b901e4d93debf64af33d4349662553e61e5.tar.gz |
* 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
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1057,6 +1057,7 @@ syserr_initialize(int argc, VALUE *argv, VALUE self) else { mesg = rb_str_new2(err); } + rb_enc_associate(mesg, rb_locale_encoding()); rb_call_super(1, &mesg); rb_iv_set(self, "errno", error); return self; |