Bug #8677 » loadpath.patch
ruby.c (working copy) | ||
---|---|---|
ruby_set_argv(argc, argv);
|
||
process_sflag(&opt->sflag);
|
||
{
|
||
long i;
|
||
VALUE load_path = GET_VM()->load_path;
|
||
for (i = 0; i < RARRAY_LEN(load_path); ++i) {
|
||
RARRAY_ASET(load_path, i,
|
||
rb_str_encode_ospath(RARRAY_AREF(load_path, i)));
|
||
}
|
||
}
|
||
toplevel_binding = rb_const_get(rb_cObject, rb_intern("TOPLEVEL_BINDING"));
|
||
#define PREPARE_PARSE_MAIN(expr) do { \
|