summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-03 01:52:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-03 01:52:51 +0000
commitc2a87e2733e19cc71435f36766835cb8dba56ceb (patch)
treef93790a8f5461ef6177beb5275585445d29f4674 /ruby.c
parentcda2bf5568ff81890011433853bd50407abc550e (diff)
* 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
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 0e43503f3c..c56efe4e08 100644
--- a/ruby.c
+++ b/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);
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++;
}