summaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/locale.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/locale.t b/lib/locale.t
index d1b7723450..eea92e00e0 100644
--- a/lib/locale.t
+++ b/lib/locale.t
@@ -1613,15 +1613,15 @@ foreach my $Locale (@Locale) {
$ok13 = $w == 0;
# Look for non-ASCII error messages, and verify that the first
- # such is in UTF-8 (the others almost certainly will be like the
- # first).
+ # such is NOT in UTF-8 (the others almost certainly will be like
+ # the first) See [perl #119499].
$ok14 = 1;
foreach my $err (keys %!) {
use Errno;
$! = eval "&Errno::$err"; # Convert to strerror() output
my $strerror = "$!";
if ("$strerror" =~ /\P{ASCII}/) {
- $ok14 = utf8::is_utf8($strerror);
+ $ok14 = ! utf8::is_utf8($strerror);
last;
}
}
@@ -1703,7 +1703,7 @@ foreach my $Locale (@Locale) {
$problematical_tests{$locales_test_number} = 1;
report_result($Locale, ++$locales_test_number, $ok14);
- $test_names{$locales_test_number} = 'Verify that non-ASCII UTF-8 error messages are in UTF-8';
+ $test_names{$locales_test_number} = 'Verify that non-ASCII UTF-8 error messages are NOT in UTF-8';
report_result($Locale, ++$locales_test_number, $ok15);
$test_names{$locales_test_number} = 'Verify that a number with a UTF-8 radix has a UTF-8 stringification';