summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-10 21:38:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-10 21:38:30 +0000
commit8269fa76d2972b02e844f46a88d03e7d25fb51d7 (patch)
tree65fc9c94b96296d6632f2220d37b85b4cd420012 /t
parent59ff52dd9c25cab6bcb0d8154a334ce53f7385af (diff)
downloadperl-8269fa76d2972b02e844f46a88d03e7d25fb51d7.tar.gz
Fix for ID 20010306.008, UTF-8 and \w without 'use utf8' coredump.
p4raw-id: //depot/perl@9098
Diffstat (limited to 't')
-rwxr-xr-xt/op/pat.t14
1 files changed, 11 insertions, 3 deletions
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";
+}