found 230144 5.10.0-8
thanks

On Thu, Jan 29, 2004 at 10:34:29AM +1300, Srdjan wrote:
> Package: perl
> Version: 5.8.2-2
> Severity: normal
> 
> "abcd" =~ /\A(?:x )?\p{IsAlpha}[\p{IsAlpha}\-]*\z/ doesn't match.
> 
> That stands for 5.6.1 too. However, if we change \p{IsAlpha} to
> [:alpha:], 5.6.1 will work and 5.8.2 still won't

This is still the case for 5.10.0. It seems to have to do with the
internal utf8 flag. A simpler testcase:
 
 % debugperl -Dr -e '"abcd" =~ /x*\p{IsAlpha}/ or die'
 Compiling REx "x*\p{IsAlpha}"
 synthetic stclass "ANYOF[x+utf8::IsAlpha]".
 Final program:
    1: STAR (4)
    2:   EXACT <x> (0)
    4: ANYOF[{unicode}+utf8::IsAlpha] (16)
   16: END (0)
 stclass ANYOF[x+utf8::IsAlpha] minlen 1 
 Omitting $` $& $' support.
 
 EXECUTING...
 
 Matching REx "x*\p{IsAlpha}" against "abcd"
 Matching stclass ANYOF[x+utf8::IsAlpha] against "abcd" (4 chars)
 Contradicts stclass... [regexec_flags]
 Match failed
 Died at -e line 1.
 Freeing REx: "x*\p{IsAlpha}"
 
Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to