From 65c2fec50cc2da8200489ab95362d3a971cdd64b Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 29 Jun 2011 21:37:48 +0000 Subject: * ruby.c (ruby_init_loadpath_safe): ensure RUBYLIB_PREFIX stored before RUBYLIB, even if MANGLED_PATH is enabled. fixed #1679. MANGLED_PATH is disabled by the default and will be removed completely in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index cb27d163a5..86cb0b08a5 100644 --- a/ruby.c +++ b/ruby.c @@ -441,6 +441,9 @@ ruby_init_loadpath_safe(int safe_level) load_path = GET_VM()->load_path; if (safe_level == 0) { +#ifdef MANGLED_PATH + rubylib_mangled_path("", 0); +#endif ruby_push_include(getenv("RUBYLIB"), identical_path); } -- cgit v1.2.3