summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-11-26 11:18:52 +1100
committerTony Cook <tony@develop-help.com>2015-12-07 13:48:08 +1100
commit817e3e2c67db64af99b44c781b75ef9f01fc619a (patch)
treebb6f4ca6cbd96c78d4dfb3ba9067d2858a861c28 /util.c
parent4bb6c75a4739d76a16dc0dc46dc4f7ad8c8a0b73 (diff)
downloadperl-817e3e2c67db64af99b44c781b75ef9f01fc619a.tar.gz
[perl #123991] report an error if we can't parse the number after -C
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index aeec4c08c7..17b62dda76 100644
--- a/util.c
+++ b/util.c
@@ -4538,6 +4538,9 @@ Perl_parse_unicode_opts(pTHX_ const char **popt)
Perl_croak(aTHX_ "Unknown Unicode option letter '%c'", *p);
}
}
+ else {
+ Perl_croak(aTHX_ "Invalid number '%s' for -C option.\n", p);
+ }
}
else {
for (; *p; p++) {