mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (proc_options): warn if -K option is specified. [Feature #5206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cda2bf5568
commit
c2a87e2733
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Jul 3 10:46:06 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (proc_options): warn if -K option is specified. [Feature #5206]
|
||||||
|
|
||||||
Tue Jul 3 06:12:13 2012 Eric Hodel <drbrain@segment7.net>
|
Tue Jul 3 06:12:13 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* object.c (Init_Object): Added RDoc location pointers for
|
* object.c (Init_Object): Added RDoc location pointers for
|
||||||
|
|
1
ruby.c
1
ruby.c
|
@ -920,6 +920,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
|
||||||
opt->src.enc.name = rb_str_new2(enc_name);
|
opt->src.enc.name = rb_str_new2(enc_name);
|
||||||
if (!opt->ext.enc.name)
|
if (!opt->ext.enc.name)
|
||||||
opt->ext.enc.name = opt->src.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++;
|
s++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue