summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-13 05:57:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-13 05:57:41 +0000
commit7d053825eeb27465bf7def0f81f43d57b5847d9f (patch)
tree567e2f90a014f1c80085a691661f29424cac0563
parent7f9a3a2d7d6d3f9e024c0c4a63df8fd418c20f1e (diff)
downloadruby-7d053825eeb27465bf7def0f81f43d57b5847d9f.tar.gz
ruby-7d053825eeb27465bf7def0f81f43d57b5847d9f.tar.xz
ruby-7d053825eeb27465bf7def0f81f43d57b5847d9f.zip
* load.c (rb_mod_autoload): try conversion to path like as
require. [ruby-core:23834] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--load.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 639f5b068..f58c58d27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jun 13 14:57:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_mod_autoload): try conversion to path like as
+ require. [ruby-core:23834]
+
Sat Jun 13 09:58:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (r_ivar): should not set internal encoding ivar as an
diff --git a/load.c b/load.c
index 5f9d4f229..645dca204 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;
}