Message-ID: <63ufauo0nrvcgmj6o3u1fjaf1t787a5l1n@4ax.com>
p4raw-id: //depot/perl@15654
if ($name eq "BYTE ORDER MARK") {
$fname = $name;
- $ord = 0xFFFE;
+ $ord = 0xFEFF;
} else {
## Suck in the code/name list as a big string.
## Lines look like:
if ($txt =~ m/^$hex\t\t(.+)/m) {
return $viacode{$hex} = $1;
- } elsif ($hex eq 'FFFE') {
+ } elsif ($hex eq 'FEFF') {
return $viacode{$hex} = "BYTE ORDER MARK";
} else {
carp "Unknown charcode '$hex'";
print "not " unless "\N{BYTE ORDER MARK}" eq chr(0xFFFE);
print "ok 32\n";
-print "not " unless "\N{BOM}" eq chr(0xFFFE);
+print "not " unless "\N{BOM}" eq chr(0xFEFF);
print "ok 33\n";
{
print "ok 37\n";
}
-print "not " unless charnames::viacode(0xFFFE) eq "BYTE ORDER MARK";
+print "not " unless charnames::viacode(0xFEFF) eq "BYTE ORDER MARK";
print "ok 38\n";