summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-17 04:44:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-17 04:44:53 +0000
commitce81ff128f8fe94cb13ace56aa6d974168cbdf12 (patch)
treece4ad0566cd29287ed3ca64daeb6ab7716f190e4 /perl.c
parentd51482e4a79f5afa7771fe5e33778150840d40ab (diff)
downloadperl-ce81ff128f8fe94cb13ace56aa6d974168cbdf12.tar.gz
Make also the -CAL conditional on locale.
p4raw-id: //depot/perl@18730
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index 4893762496..866c9a8826 100644
--- a/perl.c
+++ b/perl.c
@@ -3431,8 +3431,10 @@ Perl_init_argv_symbols(pTHX_ register int argc, register char **argv)
for (; argc > 0; argc--,argv++) {
SV *sv = newSVpv(argv[0],0);
av_push(GvAVn(PL_argvgv),sv);
- if (PL_unicode & PERL_UNICODE_ARGV_FLAG)
- SvUTF8_on(sv);
+ if (!(PL_unicode & PERL_UNICODE_LOCALE_FLAG) || PL_utf8locale) {
+ if (PL_unicode & PERL_UNICODE_ARGV_FLAG)
+ SvUTF8_on(sv);
+ }
if (PL_unicode & PERL_UNICODE_WIDESYSCALLS_FLAG) /* Sarathy? */
(void)sv_utf8_decode(sv);
}