On Fri, Jul 08, 2005 at 09:24:42AM +0200, demerphq wrote: > > 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.
$ ./perl -Ilib -wle '$x="\xe9\x{100}";chop$x; print 1 if $x=~/(abc|\xe9)/i' 1 $ ./perl -Ilib -wle '$x="\xe9\x{100}";chop$x; print 1 if "\xe9"=~/(abc|$x)/i' Malformed UTF-8 character (unexpected non-continuation byte 0x00, immediately after start byte 0xe9) in pattern match (m//) at -e line 1. -- Never do today what you can put off till tomorrow.