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:
parent
210e51f3bd
commit
c030cf1975
3 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
2
ruby.c
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue