summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-03-31 15:43:51 -0600
committerKarl Williamson <public@khwilliamson.com>2014-04-01 10:54:41 -0600
commitb17e32ea3ba5ef7362d2a3d1a433661afb897786 (patch)
tree2289ea37a97a126de1d80bbbe45ed973570f1758 /mg.c
parent52686f2a73483730c9ee6d16084c57a769f58495 (diff)
downloadperl-b17e32ea3ba5ef7362d2a3d1a433661afb897786.tar.gz
PATCH: [perl #119499] "$!" with UTF-8 flag
This disables the code that sets the UTF-8 flag when "$!" is UTF-8. This is being done to get v5.20 out the door, with changes to follow in v5.21. See towards the end of the discussion of this ticket. Unfortunately this change will cause #112208 to no longer be fixed.
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index 6a3a98aaf0..76912bd9ce 100644
--- a/mg.c
+++ b/mg.c
@@ -753,6 +753,11 @@ S_fixup_errno_string(pTHX_ SV* sv)
if(strEQ(SvPVX(sv), "")) {
sv_catpv(sv, UNKNOWN_ERRNO_MSG);
}
+#if 0
+ /* This is disabled to get v5.20 out the door. It means that $! behaves as
+ * if in the scope of both 'use locale' and 'use bytes'. This can cause
+ * mixed encodings and double utf8 upgrading, See towards the end of the
+ * thread for [perl #119499] */
else {
/* In some locales the error string may come back as UTF-8, in which
@@ -773,6 +778,7 @@ S_fixup_errno_string(pTHX_ SV* sv)
SvUTF8_on(sv);
}
}
+#endif
}
#ifdef VMS