diff options
author | Karl Williamson <khw@cpan.org> | 2021-07-10 17:13:41 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-07-25 09:44:40 -0600 |
commit | 010b61fd64de2c4d3803b3cc95189331c9b48de0 (patch) | |
tree | 8f3e4ae4e77432ecf6ab0e4b464578aefb54a986 /dist | |
parent | 0b8a83109d231afad953b3110a1a83e53cae50cc (diff) | |
download | perl-010b61fd64de2c4d3803b3cc95189331c9b48de0.tar.gz |
Safe: safeutf8.t: Generalize for EBCDIC
Use a code point in the test that is equally valid on EBCDIC machines
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Safe/t/safeutf8.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/Safe/t/safeutf8.t b/dist/Safe/t/safeutf8.t index c58f7e5ad1..07d70aa018 100644 --- a/dist/Safe/t/safeutf8.t +++ b/dist/Safe/t/safeutf8.t @@ -22,13 +22,13 @@ $safe->deny_only(); # Fails with "Undefined subroutine PLPerl::utf8::SWASHNEW called" # if SWASHNEW is not shared, else returns true if unicode logic is working. # (For early Perls we don't take into account EBCDIC, so will fail there -my $trigger = q{ my $a = pack('U',0xC4); $a =~ tr/\x{1234}//rd }; +my $trigger = q{ my $a = pack('U',0xB6); $a =~ tr/\x{1234}//rd }; ok $safe->reval( $trigger ), 'trigger expression should return true'; is $@, '', 'trigger expression should not die'; # return a closure -my $sub = $safe->reval(q{sub { warn pack('U',0xC4) }}); +my $sub = $safe->reval(q{sub { warn pack('U',0xB6) }}); # define code outside Safe that'll be triggered from inside my @warns; |