X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2Ffresh_perl.t;h=980f5e53be526694db2e4cee7ba30708bdec6d1a;hb=cf2649810f00335bd657355d81bcc9384a620135;hp=d47f27f6cc376600417dc06eaaad485bdcbabb27;hpb=29489e7c741791873ea464cb7e13d2b5a19577a7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/run/fresh_perl.t b/t/run/fresh_perl.t index d47f27f..980f5e5 100644 --- a/t/run/fresh_perl.t +++ b/t/run/fresh_perl.t @@ -855,3 +855,20 @@ print glob(q(./"TEST")); EXPECT ./"TEST" ./"TEST" +######## "Segfault using HTML::Entities", Richard Jolly , in perl-unicode@perl.org +-lw +# SKIP: use Config; $ENV{PERL_CORE_MINITEST} or " $Config::Config{'extensions'} " !~ m[ Encode ] # Perl configured without Encode module +BEGIN { + eval 'require Encode'; + if ($@) { exit 0 } # running minitest? +} +# Test case cut down by jhi +$SIG{__WARN__} = sub { $@ = shift }; +use Encode; +my $t = "\xE9"; +Encode::_utf8_on($t); +$t =~ s/([^a])//ge; +$@ =~ s/ at .*/ at/; +print $@ +EXPECT +Malformed UTF-8 character (unexpected end of string) in substitution (s///) at