p4raw-id: //depot/perl@15783
if ($code > 0x10FFFF) {
carp "Unicode characters only allocated up to 0x10FFFF (you asked for $hex)";
- return "\x{FFFD}";
+ return;
}
return $viacode{$hex} if exists $viacode{$hex};
if ($txt =~ m/^$hex\t\t(.+)/m) {
return $viacode{$hex} = $1;
} else {
- carp "Unknown charcode '$hex'";
- return "\x{FFFD}";
+ return;
}
}
print "ok 17\n";
# Unused Hebrew.
- print "not " unless charnames::viacode(0x0590) eq chr(0xFFFD);
+ print "not " if defined charnames::viacode(0x0590);
print "ok 18\n";
}