Project

General

Profile

Bug #8677 » loadpath.patch

jiayp@glodon.com (贾 延平), 08/11/2013 03:19 PM

View differences:

ruby.c (working copy)
1456 1456
    ruby_set_argv(argc, argv);
1457 1457
    process_sflag(&opt->sflag);
1458 1458

  
1459
    {
1460
	long i;
1461
	VALUE load_path = GET_VM()->load_path;
1462
	for (i = 0; i < RARRAY_LEN(load_path); ++i) {
1463
	    RARRAY_ASET(load_path, i,
1464
			rb_str_encode_ospath(RARRAY_AREF(load_path, i)));
1465
	}
1466
	}
1467

  
1459 1468
    toplevel_binding = rb_const_get(rb_cObject, rb_intern("TOPLEVEL_BINDING"));
1460 1469

  
1461 1470
#define PREPARE_PARSE_MAIN(expr) do { \