summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-25 04:56:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-25 04:56:56 +0000
commitadac82c7012022865800c6235e0a0d8b8710e279 (patch)
treed4115ed17a218f6e06aed4c85487d807842bdc85
parent7399586d384137f7ae66bcc82a83b0df7dd429e5 (diff)
downloadperl-adac82c7012022865800c6235e0a0d8b8710e279.tar.gz
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
-rw-r--r--regcomp.c1
-rw-r--r--regexec.c1
-rw-r--r--t/harness2
-rwxr-xr-xt/lib/io_udp.t1
-rw-r--r--t/op/re_tests1
-rwxr-xr-xt/pragma/locale.t1
6 files changed, 6 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index c6fb7feeb7..2d81da18d4 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 e40d1c7ea7..e69c4ffd4e 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 c46a87090c..b89b35ac85 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 8547024df3..3d5145ec5e 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 cbcb7251b1..34b6e29414 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 f6b0f2d189..4999617d51 100755
--- a/t/pragma/locale.t
+++ b/t/pragma/locale.t
@@ -11,6 +11,7 @@ BEGIN {
}
use strict;
+no utf8;
my $debug = 1;