This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35db910
)
Display characters as Unicode for clarity
author
Karl Williamson
<khw@khw-desktop.(none)>
Fri, 15 Jan 2010 02:19:22 +0000
(19:19 -0700)
committer
Craig A. Berry
<craigberry@mac.com>
Sat, 29 May 2010 15:40:18 +0000
(10:40 -0500)
t/re/pat_special_cc.t
patch
|
blob
|
blame
|
history
diff --git
a/t/re/pat_special_cc.t
b/t/re/pat_special_cc.t
index
1138cbb
..
36116b8
100644
(file)
--- a/
t/re/pat_special_cc.t
+++ b/
t/re/pat_special_cc.t
@@
-37,6
+37,7
@@
sub run_tests {
my @plain_complement_failed;
for my $ord (0 .. $upper_bound) {
my $ch= chr $ord;
+ my $ord = sprintf "U+%04X", $ord; # For display in Unicode terms
my $plain= $ch=~/$special/ ? 1 : 0;
my $plain_u= $ch=~/$upper/ ? 1 : 0;
push @plain_complement_failed, "$ord-$plain-$plain_u" if $plain == $plain_u;