Dr.Ruud skribis 2007-03-31 14:00 (+0200):
> > unicode explicitly is a superset of latin1.
> But there are defined differences:
> $ perl -wle '(chr().chr(255)) =~ /^s/ and $n++ and
print for 0..255;
> $ perl -wle '(chr().chr(256)) =~ /^s/ and $n++ and
print for 0..255;
That's a bug; see also the subthread "fixing the regex
engine wrt
unicode" for an overview of why it cannot be fixed, and
how it could be
--
korajn salutojn,
juerd waalboer: perl hacker <juerd juerd.nl> <http://juerd.nl/sig>
convolution: ict solutions and consultancy
<sales convolution.nl>
Ik vertrouw stemcomputers niet.
Zie <ht
tp://www.wijvertrouwenstemcomputersniet.nl/>.
|