diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-14 11:06:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-14 11:06:02 +0000 |
commit | 17fa0776055c3d6ef5e8451cfcb9e194ca912faa (patch) | |
tree | 2900e3b26ff3b818ea7bbdc691fa82883d31d269 /t/op/lc.t | |
parent | f24aceb1b6884bbb6aae2a756c35663bc6fac2c3 (diff) | |
download | perl-17fa0776055c3d6ef5e8451cfcb9e194ca912faa.tar.gz |
Fix [perl #43207] lc() or uc() inside sort affect the return value.
p4raw-id: //depot/perl@31377
Diffstat (limited to 't/op/lc.t')
-rw-r--r-- | t/op/lc.t | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -6,7 +6,7 @@ BEGIN { require './test.pl'; } -plan tests => 87; +plan tests => 88; $a = "HELLO.* world"; $b = "hello.* WORLD"; @@ -205,3 +205,10 @@ for (1, 4, 9, 16, 25) { is(lc "\x{0130}" x $_, "i\x{307}" x $_, 'lc U+0130 grows'); } + +# bug #43207 +my $temp = "Hello"; +for ("$temp") { + lc $_; + is($_, "Hello"); +} |