From 087ecdf5edfeb5c29866bb39ce0eaecaa6550ed0 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Jun 2009 05:57:41 +0000 Subject: [PATCH] * load.c (rb_mod_autoload): try conversion to path like as require. [ruby-core:23834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ load.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 639f5b0685..f58c58d273 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jun 13 14:57:36 2009 Nobuyoshi Nakada + + * load.c (rb_mod_autoload): try conversion to path like as + require. [ruby-core:23834] + Sat Jun 13 09:58:26 2009 Nobuyoshi Nakada * marshal.c (r_ivar): should not set internal encoding ivar as an diff --git a/load.c b/load.c index 5f9d4f2294..645dca2040 100644 --- a/load.c +++ b/load.c @@ -654,7 +654,7 @@ rb_mod_autoload(VALUE mod, VALUE sym, VALUE file) { ID id = rb_to_id(sym); - Check_SafeStr(file); + FilePathValue(file); rb_autoload(mod, id, RSTRING_PTR(file)); return Qnil; }