From 44691b901e4d93debf64af33d4349662553e61e5 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 11 Oct 2010 05:15:03 +0000 Subject: * 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 --- error.c | 1 + 1 file changed, 1 insertion(+) (limited to 'error.c') diff --git a/error.c b/error.c index 479caff213..f05600f7fb 100644 --- a/error.c +++ b/error.c @@ -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; -- cgit v1.2.3