diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-04 16:01:01 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-04 16:01:01 +0000 |
commit | 007c9aa2bf0ca503001e5ee2c2fc73566a09fbfc (patch) | |
tree | 898052bb5d330c3a4065ea0b71ea36e2fb165965 /ruby.c | |
parent | 87c25d897b4c9cef0c2031ddd9e75474383a2f04 (diff) |
* ruby.c (proc_options): warn only if -K and -w option is specified.
see also r36274 [Feature #5206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -920,7 +920,6 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt) opt->src.enc.name = rb_str_new2(enc_name); if (!opt->ext.enc.name) opt->ext.enc.name = opt->src.enc.name; - rb_warn("-K%c is specified; it is for 1.8 compatibility and may cause odd behavior", rb_tolower(*s)); } s++; } @@ -1277,6 +1276,9 @@ process_options(int argc, char **argv, struct cmdline_options *opt) opt->intern.enc.name = int_enc_name; } + if (opt->src.enc.name) + rb_warning("-K is specified; it is for 1.8 compatibility and may cause odd behavior"); + if (opt->dump & DUMP_BIT(version)) { ruby_show_version(); return Qtrue; |