diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-07 07:30:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-07 07:30:31 +0000 |
commit | 075d98c7dc0cee294f03ed0ed26e1e8d8876b2b9 (patch) | |
tree | 9e8837ee94ededc62b66b5c4f7a97e9477ba4d0a /load.c | |
parent | 8e07edf364398a9843dc939ec7e5ec7acdf62b95 (diff) | |
download | ruby-075d98c7dc0cee294f03ed0ed26e1e8d8876b2b9.tar.gz |
* 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
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |