On 7/8/05, Dave Mitchell <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 07, 2005 at 04:28:08PM -0000, Nicholas Clark wrote:
> > ./perl -Ilib -we '$term = "\xe9"; $target = "\xe9\x{100}"; chop $target; 
> > $target =~ /$term/i'
> > Malformed UTF-8 character (unexpected non-continuation byte 0x00, 
> > immediately after start byte 0xe9) in pattern match (m//) at -e line 1.
> >
> 
> it turns out perl is totally borked for
> 
>     $utf8 =~ /latin1/i
> and
> 
>     $latin1 =~ /$utf8/i
> 
> unless all the chars happen to be < 0x7f.

The case where the pattern is /(foo|bar)/ is handled by a totally
different codepath in blead, does it also fail there? I seem to recall
that I put in tests for this, but possibly im wrong. Im flying on
holiday in less than 24 hours and i doubt Ill be able to check until i
return at the end of the month.
 
cheers,
yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to