summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-02-15 21:19:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-02-15 21:19:37 +0000
commita05d7ebb5e798334196e3cff205b658506cc4384 (patch)
tree0146d20f2a85eeb407ef0d67305028aee32c79fc /mg.c
parenteadddfac8c84315d3b083947a75b271e6d6b7754 (diff)
downloadperl-a05d7ebb5e798334196e3cff205b658506cc4384.tar.gz
The new(er) way of controlling Unicode I/O (and other) features;
-C (or PERL_UNICODE). See perlrun/-C for more details. p4raw-id: //depot/perl@18715
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/mg.c b/mg.c
index 0edd71106c..20673bf720 100644
--- a/mg.c
+++ b/mg.c
@@ -662,9 +662,9 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
? (PL_taint_warn || PL_unsafe ? -1 : 1)
: 0);
break;
- case '\025': /* $^UTF8_LOCALE */
- if (strEQ(mg->mg_ptr, "\025TF8_LOCALE"))
- sv_setiv(sv, (IV) (PL_wantutf8 && PL_utf8locale));
+ case '\025': /* $^UNICODE */
+ if (strEQ(mg->mg_ptr, "\025NICODE"))
+ sv_setuv(sv, (UV) PL_unicode);
break;
case '\027': /* ^W & $^WARNING_BITS */
if (*(mg->mg_ptr+1) == '\0')
@@ -1942,12 +1942,6 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
PL_basetime = (Time_t)(SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv));
#endif
break;
- case '\025': /* $^UTF8_LOCALE */
- if (SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv))
- PL_wantutf8 = PL_utf8locale;
- else
- PL_wantutf8 = FALSE;
- break;
case '\027': /* ^W & $^WARNING_BITS */
if (*(mg->mg_ptr+1) == '\0') {
if ( ! (PL_dowarn & G_WARN_ALL_MASK)) {