[FFmpeg-cvslog] texi2pod: Make it output a single encoding string

Luca Barbato git at videolan.org
Wed Sep 3 12:32:57 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Sep  1 01:30:44 2014 +0200| [94f084324e648876508bed546d950762f10b875e] | committer: Luca Barbato

texi2pod: Make it output a single encoding string

Intermixing =encoding utf-8 in the file can confuse some pod2man
implementations.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94f084324e648876508bed546d950762f10b875e
---

 doc/texi2pod.pl |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
index 54d5717..e4eb61c 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/;



More information about the ffmpeg-cvslog mailing list