summaryrefslogtreecommitdiff
path: root/t/uni
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-29 14:05:55 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-29 14:05:55 +0000
commit673061948a634568cc156286d219e7f736c6048a (patch)
treec6ab92b0e28e52c35da0991f7ae94be9074850ba /t/uni
parentec9af7d430b6660eff7240fa20757fa5feb233a8 (diff)
downloadperl-673061948a634568cc156286d219e7f736c6048a.tar.gz
uc plus an 8 bit locale could get confused by UTF-8 values returned by
overloaded stringification. p4raw-id: //depot/perl@28012
Diffstat (limited to 't/uni')
-rw-r--r--t/uni/overload.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/uni/overload.t b/t/uni/overload.t
index 3ecfafbe41..407d4c6a88 100644
--- a/t/uni/overload.t
+++ b/t/uni/overload.t
@@ -7,7 +7,7 @@ BEGIN {
}
}
-use Test::More tests => 12;
+use Test::More tests => 16;
package UTF8Toggle;
use strict;
@@ -64,5 +64,13 @@ SKIP: {
$lc = lc $u;
is (length $lc, 1);
is ($lc, "\351", "E accute -> e accute");
+
+ $u = UTF8Toggle->new("\351");
+ my $uc = uc $u;
+ is (length $uc, 1);
+ is ($uc, "\311", "e accute -> E accute");
+ $uc = uc $u;
+ is (length $uc, 1);
+ is ($uc, "\311", "e accute -> E accute");
}
}