Hi,

At Sat, 15 Jul 2006 22:07:29 +0900,
nobu / ruby-lang.org wrote in [ruby-core:08234]:
> At Sat, 15 Jul 2006 15:54:00 +0900,
> Tanaka Akira wrote in [ruby-core:08233]:
> > It seems a problem of "require".
> 
> Indeed.

Sorry, it was insufficient.


Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.616.2.180 diff -p -U 2 -r1.616.2.180 eval.c --- eval.c 13 Jul 2006 15:42:46 -0000 1.616.2.180 +++ eval.c 15 Jul 2006 13:37:25 -0000 @@ -7138,10 +7138,9 @@ rb_require_safe(fname, safe) found = search_required(fname, &feature, &path); if (found) { - if (!path || load_wait(RSTRING(path)->ptr)) { + if (!path || load_wait(RSTRING(feature)->ptr)) { result = Qfalse; } else { ruby_safe_level = 0; - rb_provide_feature(feature); switch (found) { case 'r': @@ -7166,4 +7165,5 @@ rb_require_safe(fname, safe) break; } + rb_provide_feature(feature); result = Qtrue; }
-- Nobu Nakada