1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merges r23813 and r23821 from trunk into ruby_1_9_1.

--
* ruby.c (process_options), enc/prelude.rb: encdb and transdb are
  extension libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-06-24 16:03:32 +00:00
parent d990d38aac
commit eed1694c57
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Mon Jun 22 14:41:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options), enc/prelude.rb: encdb and transdb are
extension libraries.
* ruby.c (process_options): set progname earlier.
Sun Jun 21 22:33:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
* load.c (Init_load): $: must be readonly. [ruby-dev:38690]

View file

@ -1,4 +1,4 @@
%w'enc/encdb enc/trans/transdb'.each do |init|
%w'enc/encdb.so enc/trans/transdb.so'.each do |init|
begin
require(init)
rescue LoadError

2
ruby.c
View file

@ -1274,7 +1274,7 @@ process_options(VALUE arg)
rb_obj_freeze(opt->script_name);
ruby_init_loadpath_safe(opt->safe_level);
rb_enc_find_index("encdb");
rb_enc_find_index("encdb.so");
lenc = rb_locale_encoding();
rb_enc_associate(rb_progname, lenc);
parser = rb_parser_new();