From 407dd6bc6470360c28ea1da47bf08775d4408848 Mon Sep 17 00:00:00 2001 From: zhaoxiaomeng Date: Sun, 16 Jul 2017 22:59:10 +0800 Subject: [PATCH] [bugfix] add utf8 support for pod2html and pod2markdown --- Configurations/unix-Makefile.tmpl | 2 +- util/pod2markdown.sh | 2 +- util/process_docs.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 07b458a7..3d8dc628 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -646,7 +646,7 @@ install_html_docs: @\ OUTSUFFIX='.$(HTMLSUFFIX)'; \ OUTTOP="$(DESTDIR)$(HTMLDIR)"; \ - GENERATE="pod2html --podroot=$(SRCDIR)/doc --htmldir=.. \ + GENERATE="pod2html --utf8 --podroot=$(SRCDIR)/doc --htmldir=.. \ --podpath=apps:crypto:ssl --title=\$$Name \ | perl -pe 's|href=\"http://man.he.net/man|href=\"../man|g; s|href=\"(.*/man.*)(?|href=\"\$$1.html\">|g;'"; \ $(PROCESS_PODS) diff --git a/util/pod2markdown.sh b/util/pod2markdown.sh index 6b7dd4ae..9bbe3b68 100755 --- a/util/pod2markdown.sh +++ b/util/pod2markdown.sh @@ -3,5 +3,5 @@ for file in $`ls *.pod` do mdfile=`basename -s .pod $file`.md - pod2markdown $file $mdfile + pod2markdown --utf8 $file $mdfile done diff --git a/util/process_docs.pl b/util/process_docs.pl index 368ecb6b..34f40c03 100644 --- a/util/process_docs.pl +++ b/util/process_docs.pl @@ -93,7 +93,7 @@ foreach my $subdir (keys %{$options{subdir}}) { my $suffix = { man => ".$podinfo{section}", html => ".html" } -> {$options{type}}; my $generate = { man => "pod2man --utf8 --name=$name --section=$podinfo{section} --center=OpenSSL --release=$config{version} \"$podpath\"", - html => "pod2html \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=apps:crypto:ssl \"--infile=$podpath\" \"--title=$podname\"" + html => "pod2html --utf8 \"--podroot=$options{sourcedir}\" --htmldir=$updir --podpath=apps:crypto:ssl \"--infile=$podpath\" \"--title=$podname\"" } -> {$options{type}}; my $output_dir = catdir($options{destdir}, "man$podinfo{section}"); my $output_file = $podname . $suffix;