perl-unicode

Re: utf8::valid and \x14_000 - \x1F_0000

2008-03-11 06:52:47
Chris Hall skribis 2008-03-11 13:30 (+0000):
I suggest utf8::valid() is broken.
    my $s = chr($c) ;
    my $v = utf8::valid($s) ? 1 : 0 ;

Agreed. utf8::valid(chr $foo) should ALWAYS return true. (Please note
that utf8::valid tests the internal consistency of a string - on the
outside, it has little to do with UTF8.)

Could you please report this bug with perlbug?
-- 
Met vriendelijke groet,  Kind regards,  Korajn salutojn,

  Juerd Waalboer:  Perl hacker  <#####(_at_)juerd(_dot_)nl>  
<http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy 
<sales(_at_)convolution(_dot_)nl>