From d555a68ca6475bbb6f7f60ae1bdcdffa99df351f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 28 Aug 2012 04:46:04 -0400 Subject: [PATCH] podwrapper: Ignore $parser->html_charset if it fails (thanks Wulf C. Krueger). This method was added in Pod::Simple 3.16 so earlier versions of Perl won't have it. It's not the end of the world if we don't set it. --- podwrapper.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podwrapper.pl.in b/podwrapper.pl.in index db1200c18..f9b61f0e5 100755 --- a/podwrapper.pl.in +++ b/podwrapper.pl.in @@ -465,7 +465,8 @@ if ($html) { my $parser = Podwrapper::XHTML->new; my $output; $parser->output_string (\$output); - $parser->html_charset ("UTF-8"); + # Added in Pod::Simple 3.16, 2011-03-14. + eval { $parser->html_charset ("UTF-8") }; $parser->html_css ("pod.css"); $parser->index (1); $parser->parse_string_document ($content);