* ruby.c (process_options): set encoding of -e option from -E option
if they are compatible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c30d2489dd
commit
5776f23d69
@ -1,4 +1,4 @@
|
|||||||
Fri Jan 25 15:41:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Jan 25 15:56:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.c (cmdline_arguments): split argc and argv from cmdline_options.
|
* ruby.c (cmdline_arguments): split argc and argv from cmdline_options.
|
||||||
|
|
||||||
|
3
ruby.c
3
ruby.c
@ -1021,6 +1021,9 @@ process_options(VALUE arg)
|
|||||||
rb_warning("-e conatains non ASCII string, encoding %s is not used",
|
rb_warning("-e conatains non ASCII string, encoding %s is not used",
|
||||||
rb_enc_name(enc));
|
rb_enc_name(enc));
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
eenc = enc;
|
||||||
|
}
|
||||||
rb_enc_associate(opt->e_script, eenc);
|
rb_enc_associate(opt->e_script, eenc);
|
||||||
require_libraries();
|
require_libraries();
|
||||||
tree = rb_parser_compile_string(parser, opt->script, opt->e_script, 1);
|
tree = rb_parser_compile_string(parser, opt->script, opt->e_script, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user