diff options
author | Tony Cook <tony@develop-help.com> | 2015-11-26 11:18:52 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-12-07 13:48:08 +1100 |
commit | 817e3e2c67db64af99b44c781b75ef9f01fc619a (patch) | |
tree | bb6f4ca6cbd96c78d4dfb3ba9067d2858a861c28 /util.c | |
parent | 4bb6c75a4739d76a16dc0dc46dc4f7ad8c8a0b73 (diff) | |
download | perl-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++) { |