X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcharnames.t;h=c53f54a067126bfb8804188c58797877546d0757;hb=06c0cc96ebd866767a6d107ed78967600f7e0395;hp=34fe56d3dd6f58a84ce30e3de23cb0188721fbc6;hpb=63c6dcc1775b960c3418c4c23568c59231321ed1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/charnames.t b/lib/charnames.t index 34fe56d..c53f54a 100644 --- a/lib/charnames.t +++ b/lib/charnames.t @@ -15,7 +15,7 @@ require File::Spec; $| = 1; -print "1..73\n"; +print "1..74\n"; use charnames ':full'; @@ -61,7 +61,7 @@ else { # EBCDIC where UTF-EBCDIC may be used (this may be 1047 specific since } sub to_bytes { - pack"a*", shift; + unpack"U0a*", shift; } { @@ -328,6 +328,12 @@ for (@prgs) { 1 while unlink $alifile; } +# [perl #30409] charnames.pm clobbers default variable +$_ = 'foobar'; +eval "use charnames ':full';"; +print "not " unless $_ eq 'foobar'; +print "ok 74\n"; + __END__ # unsupported pragma use charnames ":scoobydoo"; @@ -399,7 +405,7 @@ Only HASH reference supported as argument to :alias at use charnames ":short", ":alias" => { e_ACUTE => "LATIN:e WITH ACUTE", "a_ACUTE" }; "Here: \N{e_ACUTE}\N{a_ACUTE}!\n"; EXPECT -Use of uninitialized value in string eq at +Use of uninitialized value ######## # alias with hashref two aliases use charnames ":short", ":alias" => {