From 075d98c7dc0cee294f03ed0ed26e1e8d8876b2b9 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 7 Mar 2012 07:30:31 +0000 Subject: * error.c (rb_load_fail): should honor encoding. * load.c (load_failed): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- load.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'load.c') diff --git a/load.c b/load.c index 3d877a83c9..18651dd3a2 100644 --- a/load.c +++ b/load.c @@ -588,12 +588,10 @@ search_required(VALUE fname, volatile VALUE *path, int safe_level) return type ? 's' : 'r'; } -void rb_loaderror_with_path(VALUE path, const char *fmt, ...); - static void load_failed(VALUE fname) { - rb_loaderror_with_path(fname, "cannot load such file -- %s", RSTRING_PTR(fname)); + rb_load_fail(fname, "cannot load such file"); } static VALUE -- cgit v1.2.3