diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-21 14:18:40 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-21 14:18:40 +0000 |
commit | 672fde27ba83048a1bcb79269f93917843058281 (patch) | |
tree | 2a1307512229148cd2df2d2a4e888f8f0c69eb1c /perl.c | |
parent | 4f7806f3e19db049970d6c6265e5b956d1d7f74a (diff) | |
download | perl-672fde27ba83048a1bcb79269f93917843058281.tar.gz |
Allow explicit -C enable/disable by -C:1/-C:0
(suggested by Peter Haworth).
p4raw-id: //depot/perl@18536
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2156,6 +2156,10 @@ Perl_moreswitches(pTHX_ char *s) case 'C': PL_wantutf8 = TRUE; /* Can be set earlier by $ENV{PERL_UTF8_LOCALE}. */ s++; + if (*s == ':') { + PL_wantutf8 = (bool) atoi(s + 1); + for (s++; isDIGIT(*s); s++) ; + } return s; case 'F': PL_minus_F = TRUE; |