summaryrefslogtreecommitdiff
path: root/doc/texi2pod.pl
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-09-01 01:30:44 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-09-03 02:14:17 +0200
commit94f084324e648876508bed546d950762f10b875e (patch)
tree9090a43f2d186797bb6b3c61463d7a4af3026a70 /doc/texi2pod.pl
parent4912b634b517c8acfc476c5d47f10be83fe7e18b (diff)
texi2pod: Make it output a single encoding string
Intermixing =encoding utf-8 in the file can confuse some pod2man implementations.
Diffstat (limited to 'doc/texi2pod.pl')
-rwxr-xr-xdoc/texi2pod.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 54d57172d5..e4eb61c26c 100755
--- a/doc/texi2pod.pl
+++ b/doc/texi2pod.pl
@@ -327,13 +327,14 @@ $inf = pop @instack;
die "No filename or title\n" unless defined $fn && defined $tl;
+# always use utf8
+print "=encoding utf8\n\n";
+
$sects{NAME} = "$fn \- $tl\n";
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
unshift @sects_sequence, "NAME";
for $sect (@sects_sequence) {
- # always use utf8
- print "=encoding utf8\n";
if(exists $sects{$sect}) {
$head = $sect;
$head =~ s/SEEALSO/SEE ALSO/;