From: Marty Pauley Date: Fri, 18 Oct 2002 21:02:38 +0000 (+0100) Subject: new test based on: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=107c23634640452662c18f6ae1ae0d2920a4cf3b;p=p5sagit%2Fp5-mst-13.2.git new test based on: Subject: [TEST] for [PATCH] bug in utf8.c(?) Message-ID: <20021018200238.GY3764@soto.kasei.com> p4raw-id: //depot/perl@18106 --- diff --git a/lib/utf8.t b/lib/utf8.t index 8fc4481..41a7368 100644 --- a/lib/utf8.t +++ b/lib/utf8.t @@ -37,7 +37,7 @@ no utf8; # Ironic, no? # # -plan tests => 94; +plan tests => 95; { # bug id 20001009.001 @@ -265,3 +265,18 @@ BANG like ($result, $expect, $why); } } + +# +# bug fixed by change #17928 +# separate perl used because we rely on 'strict' not yet loaded; +# before the patch, the eval died with an error like: +# "my" variable $strict::VERSION can't be in a package +# +ok('' eq runperl(prog => <<'CODE')); + my $code = qq{ my \$\xe3\x83\x95\xe3\x83\xbc = 5; }; + { + use utf8; + eval $code; + print $@ if $@; + } +CODE