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

[email protected] (Juerd Waalboer) Tue, 11 Mar 2008 14:46:17 +0100
Newsgroups perl.unicode
Message-ID <[email protected]>
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  <#####@juerd.nl>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <[email protected]>