summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-01-21 14:18:40 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-01-21 14:18:40 +0000
commit672fde27ba83048a1bcb79269f93917843058281 (patch)
tree2a1307512229148cd2df2d2a4e888f8f0c69eb1c /perl.c
parent4f7806f3e19db049970d6c6265e5b956d1d7f74a (diff)
downloadperl-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 0abde46ef5..6c2c366683 100644
--- a/perl.c
+++ b/perl.c
@@ -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;