summaryrefslogtreecommitdiff
path: root/t/op/pat.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-12-22 04:27:46 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-22 04:27:46 +0000
commit55da934421fcbc3e0aef697419eb0bae333786b1 (patch)
treeba0e416b469ce8e1caf774d43d9e8fc26f4c1ebb /t/op/pat.t
parenta5961de5f4215b5cd376e88c8c5d267c7f7123f6 (diff)
downloadperl-55da934421fcbc3e0aef697419eb0bae333786b1.tar.gz
More Unicode casing fixes.
p4raw-id: //depot/perl@13844
Diffstat (limited to 't/op/pat.t')
-rwxr-xr-xt/op/pat.t19
1 files changed, 18 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t
index ee7a736091..e4556ee1e7 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -6,7 +6,7 @@
$| = 1;
-print "1..769\n";
+print "1..770\n";
BEGIN {
chdir 't' if -d 't';
@@ -2324,3 +2324,20 @@ print "# some Unicode properties\n";
print $lower =~ m/[$UPPER]/i ? "ok 768\n" : "not ok 768\n";
print $UPPER =~ m/[$lower]/i ? "ok 769\n" : "not ok 769\n";
}
+
+{
+ use warnings;
+ use charnames ':full';
+
+ print "# GREEK CAPITAL LETTER SIGMA vs COMBINING GREEK PERISPOMENI\n";
+
+ my $SIGMA = "\N{GREEK CAPITAL LETTER SIGMA}";
+
+ my $hSIGMA = sprintf "%04x", ord $SIGMA;
+
+ my $char = "\N{COMBINING GREEK PERISPOMENI}";
+ my $code = sprintf "%04x", ord($char);
+
+ # Before #13843 this was failing.
+ print "_:$char:_" =~ m/_:$SIGMA:_/i ? "not ok 770\n" : "ok 770\n";
+}