From: Gurusamy Sarathy Date: Sun, 25 Jul 1999 04:56:56 +0000 (+0000) Subject: fix little utf8 nits in testsuite; add patch from Ilya that cures X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=adac82c7012022865800c6235e0a0d8b8710e279;p=p5sagit%2Fp5-mst-13.2.git fix little utf8 nits in testsuite; add patch from Ilya that cures a utf8 bug in one of the new RE optimizations p4raw-id: //depot/perl@3730 --- diff --git a/regcomp.c b/regcomp.c index c6fb7fe..2d81da1 100644 --- a/regcomp.c +++ b/regcomp.c @@ -3224,6 +3224,7 @@ void Perl_pregfree(pTHX_ struct regexp *r) { dTHR; + DEBUG_r(if (!PL_colorset) reginitcolors()); DEBUG_r(PerlIO_printf(Perl_debug_log, "%sFreeing REx:%s `%s%.60s%s%s'\n", PL_colors[4],PL_colors[5],PL_colors[0], diff --git a/regexec.c b/regexec.c index e40d1c7..e69c4ff 100644 --- a/regexec.c +++ b/regexec.c @@ -321,6 +321,7 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos, && (sv && (strpos + SvCUR(sv) != strend)) ) goto fail; + PL_regeol = strend; /* Used in HOP() */ s = (char*)HOP((U8*)strpos, prog->check_offset_min); if (SvTAIL(prog->check_substr)) { slen = SvCUR(prog->check_substr); /* >= 1 */ diff --git a/t/harness b/t/harness index c46a870..b89b35a 100644 --- a/t/harness +++ b/t/harness @@ -57,7 +57,7 @@ EOT @tests = grep (!$infinite{$_}, @tests); @tests = map { my $new = $_; - if ($datahandle{$_} && !( -f $new.t) ) { + if ($datahandle{$_} && !( -f "$new.t") ) { $new .= '.t'; local(*F, *T); open(F,"<$_") or die "Can't open $_: $!"; diff --git a/t/lib/io_udp.t b/t/lib/io_udp.t index 8547024..3d5145e 100755 --- a/t/lib/io_udp.t +++ b/t/lib/io_udp.t @@ -31,6 +31,7 @@ BEGIN { } sub compare_addr { + no utf8; my $a = shift; my $b = shift; if (length($a) != length $b) { diff --git a/t/op/re_tests b/t/op/re_tests index cbcb725..34b6e29 100644 --- a/t/op/re_tests +++ b/t/op/re_tests @@ -714,3 +714,4 @@ a(?{$a=2;$b=3;($b)=$a})b yabz y $b 2 round\(((?>[^()]+))\) _I(round(xs * sz),1) y $1 xs * sz '((?x:.) )' x y $1- x - '((?-x:.) )'x x y $1- x- +foo.bart foo.bart y - - diff --git a/t/pragma/locale.t b/t/pragma/locale.t index f6b0f2d..4999617 100755 --- a/t/pragma/locale.t +++ b/t/pragma/locale.t @@ -11,6 +11,7 @@ BEGIN { } use strict; +no utf8; my $debug = 1;