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

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

extension libraries.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-06-22 05:41:51 +00:00
parent 210e51f3bd
commit c030cf1975
3 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,7 @@
Mon Jun 22 14:35:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
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.

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

@ -1302,7 +1302,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
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();