From 2479d4264ec55578d1629ba6762de85cb5004553 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 16 May 2010 12:46:13 +0000 Subject: merges r27813 from trunk into ruby_1_9_2. -- * error.c (rb_loaderror): use locale string, not ascii-8bit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index 39bec9ede4..fb2aa8d7df 100644 --- a/error.c +++ b/error.c @@ -11,6 +11,7 @@ #include "ruby/ruby.h" #include "ruby/st.h" +#include "ruby/encoding.h" #include "vm_core.h" #include @@ -1469,7 +1470,7 @@ rb_loaderror(const char *fmt, ...) VALUE mesg; va_start(args, fmt); - mesg = rb_vsprintf(fmt, args); + mesg = rb_enc_vsprintf(rb_locale_encoding(), fmt, args); va_end(args); rb_exc_raise(rb_exc_new3(rb_eLoadError, mesg)); } -- cgit v1.2.3