diff options
author | Nicholas Clark <nick@ccl4.org> | 2000-10-21 16:04:51 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-21 14:37:49 +0000 |
commit | 22d71bcf9207aa7a8ed35f57447668bdcbc8c03d (patch) | |
tree | fc14ab47e85fd3681795cc2d55eb5c4cd696a5e2 /t | |
parent | ebc9eff7627742e35a03e4512a68d98f1ce7d0e5 (diff) | |
download | perl-22d71bcf9207aa7a8ed35f57447668bdcbc8c03d.tar.gz |
Testcases for a #7383,#7385 related bug.
Subject: PATCH Re: [ID 20001020.006] "$2$utf8" == modification of read-only-variable
Message-ID: <20001021150451.A51566@plum.flirble.org>
p4raw-id: //depot/perl@7391
Diffstat (limited to 't')
-rwxr-xr-x | t/pragma/utf8.t | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/t/pragma/utf8.t b/t/pragma/utf8.t index 75f607dcde..7224a7497a 100755 --- a/t/pragma/utf8.t +++ b/t/pragma/utf8.t @@ -10,7 +10,7 @@ BEGIN { } } -print "1..101\n"; +print "1..103\n"; my $test = 1; @@ -543,4 +543,19 @@ sub nok_bytes { print "ok $test\n"; $test++; + + *pi = \undef; + # This bug existed earlier than the $2 bug, but is fixed with the same + # patch. Without the fix this will also croak: + # Modification of a read-only value attempted at ... + "$pi\x{1234}"; + + print "ok $test\n"; + $test++; + + # For symmetry with the above. + "\x{1234}$pi"; + + print "ok $test\n"; + $test++; } |