summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 04:55:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-16 04:55:29 +0000
commit40caeb6bd1e83d447ed4f6cd8d4ab430ee11f3f1 (patch)
tree5761eb99ec422159093498b295e724a0c0e017f4 /error.c
parentdf54a2e6be074957bcd1c19b4b9d19766da445de (diff)
* error.c (rb_loaderror): use locale string, not ascii-8bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
@@ -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));
}