diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-17 04:44:53 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-02-17 04:44:53 +0000 |
commit | ce81ff128f8fe94cb13ace56aa6d974168cbdf12 (patch) | |
tree | ce4ad0566cd29287ed3ca64daeb6ab7716f190e4 /perl.c | |
parent | d51482e4a79f5afa7771fe5e33778150840d40ab (diff) | |
download | perl-ce81ff128f8fe94cb13ace56aa6d974168cbdf12.tar.gz |
Make also the -CAL conditional on locale.
p4raw-id: //depot/perl@18730
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |