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:
281aa49
)
charnames.pm: return ord not chr
author
Karl Williamson
<khw@khw-desktop.(none)>
Wed, 7 Jul 2010 18:55:33 +0000
(12:55 -0600)
committer
Karl Williamson
<khw@khw-desktop.(none)>
Tue, 13 Jul 2010 23:07:12 +0000
(17:07 -0600)
An error leg in charnames.pm was returning the wrong type. This fixes
it. A later commit will change the .t to add "use warnings" so this fix
will be noticed.
lib/charnames.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/charnames.pm
b/lib/charnames.pm
index
96552d0
..
3bd9d22
100644
(file)
--- a/
lib/charnames.pm
+++ b/
lib/charnames.pm
@@
-543,7
+543,7
@@
sub lookup_name {
unless (@off) {
return if $runtime;
carp "Unknown charname '$name'";
- return
"\x{FFFD}"
;
+ return
0xFFFD
;
}
##