summaryrefslogtreecommitdiff
path: root/ext/Pod-Html/lib
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2012-05-04 09:21:17 -0500
committerSteve Peters <steve@fisharerojo.org>2012-05-04 09:21:17 -0500
commitdad26a174010648e2263a2cbfb432fea9bcec30e (patch)
tree8c295d4b2b33e2b98ab5dbdac56871d49c7ede1f /ext/Pod-Html/lib
parent5a0c7e9d45ff6da450098635b233527990112d8a (diff)
downloadperl-dad26a174010648e2263a2cbfb432fea9bcec30e.tar.gz
Since the HTML files generated by pod2html claim to have a utf-8 charset,
actually write the files out using utf-8. This is a fix for RT #111446.
Diffstat (limited to 'ext/Pod-Html/lib')
-rw-r--r--ext/Pod-Html/lib/Pod/Html.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
index 08d0274141..bae68cf340 100644
--- a/ext/Pod-Html/lib/Pod/Html.pm
+++ b/ext/Pod-Html/lib/Pod/Html.pm
@@ -432,6 +432,7 @@ HTMLFOOT
} else {
open $fhout, ">-";
}
+ binmode $fhout, ":utf8";
print $fhout $output;
close $fhout or die "Failed to close $Htmlfile: $!";
chmod 0644, $Htmlfile unless $Htmlfile eq '-';