From d1eb31775715b0fcd7f36308da961c0698205d9f Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 17 Oct 2009 22:47:20 +0200 Subject: somewhat fix failing regex tests. but break lots of other stuff at the same time --- t/op/lc.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/op/lc.t b/t/op/lc.t index 5f4c6b4ac7..6b7625b54a 100644 --- a/t/op/lc.t +++ b/t/op/lc.t @@ -141,13 +141,13 @@ $b = "\x{3a3}FOO.BAR"; # \x{3a3} == GREEK CAPITAL LETTER SIGMA. ($c = $b) =~ s/(\w+)/lc($1)/ge; is($c , $a, "Using s///e to change case."); -($c = $a) =~ s/(\w+)/uc($1)/ge; +($c = $a) =~ s/(\p{IsWord}+)/uc($1)/ge; is($c , $b, "Using s///e to change case."); -($c = $b) =~ s/(\w+)/lcfirst($1)/ge; +($c = $b) =~ s/(\p{IsWord}+)/lcfirst($1)/ge; is($c , "\x{3c3}FOO.bAR", "Using s///e to change case."); -($c = $a) =~ s/(\w+)/ucfirst($1)/ge; +($c = $a) =~ s/(\p{IsWord}+)/ucfirst($1)/ge; is($c , "\x{3a3}foo.Bar", "Using s///e to change case."); # #18931: perl5.8.0 bug in \U..\E processing -- cgit v1.2.1