From: Jarkko Hietaniemi Date: Wed, 26 Feb 2003 19:45:53 +0000 (+0000) Subject: An already fixed bug from perl-unicode. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=351208f1b69ff774788ddf0fb62571002594640e;p=p5sagit%2Fp5-mst-13.2.git An already fixed bug from perl-unicode. p4raw-id: //depot/perl@18784 --- diff --git a/t/op/pat.t b/t/op/pat.t index 40a2658..b3f42a8 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -6,7 +6,7 @@ $| = 1; -print "1..990\n"; +print "1..993\n"; BEGIN { chdir 't' if -d 't'; @@ -3123,5 +3123,21 @@ ok("bbbbac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]"); ok ( $p == 5, "(??{ }) returns stale values"); } -# last test 990 +{ + # Subject: Odd regexp behavior + # From: Markus Kuhn + # Date: Wed, 26 Feb 2003 16:53:12 +0000 + # Message-Id: + # To: perl-unicode@perl.org + + $x = "\x{2019}\nk"; $x =~ s/(\S)\n(\S)/$1 $2/sg; + ok($x eq "\x{2019} k", "Markus Kuhn 2003-02-26"); + + $x = "b\nk"; $x =~ s/(\S)\n(\S)/$1 $2/sg; + ok($x eq "b k", "Markus Kuhn 2003-02-26"); + + ok("\x{2019}" =~ /\S/, "Markus Kuhn 2003-02-26"); +} + +# last test 993