diff options
author | Steve Peters <steve@fisharerojo.org> | 2012-05-04 09:21:17 -0500 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2012-05-04 09:21:17 -0500 |
commit | dad26a174010648e2263a2cbfb432fea9bcec30e (patch) | |
tree | 8c295d4b2b33e2b98ab5dbdac56871d49c7ede1f /ext | |
parent | 5a0c7e9d45ff6da450098635b233527990112d8a (diff) | |
download | perl-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')
-rw-r--r-- | ext/Pod-Html/lib/Pod/Html.pm | 1 |
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 '-'; |