From 8269fa76d2972b02e844f46a88d03e7d25fb51d7 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sat, 10 Mar 2001 21:38:30 +0000 Subject: Fix for ID 20010306.008, UTF-8 and \w without 'use utf8' coredump. p4raw-id: //depot/perl@9098 --- t/op/pat.t | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/op/pat.t b/t/op/pat.t index 2d862732fe..a82da60e72 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -4,7 +4,7 @@ # the format supported by op/regexp.t. If you want to add a test # that does fit that format, add it to op/re_tests, not here. -print "1..580\n"; +print "1..581\n"; BEGIN { chdir 't' if -d 't'; @@ -1238,8 +1238,6 @@ print "ok 247\n"; { # bug id 20001008.001 - use utf8; # BUG - should not be needed, but is, otherwise core dump - my $test = 248; my @x = ("stra\337e 138","stra\337e 138"); for (@x) { @@ -1537,3 +1535,13 @@ print "ok 247\n"; for (576..580) { print "not ok $_\n" } } } + +{ + # bug id 20010306.008 + + $a = "a\x{1234}"; + # The original bug report had 'no utf8' here but that was irrelevant. + $a =~ m/\w/; # used to core dump + + print "ok 581\n"; +} -- cgit v1.2.1