From 513df7a406bc38390e30ef82e751199c396d879a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 4 Jun 2013 18:31:11 +0000 Subject: Do not feed UTF-8 input into mandoc or nroff because that resulted in corrupt output. This is a verbatim backport of the following bugfix from upstream git master: https://rt.cpan.org/Public/Bug/Display.html?id=77465 https://github.com/mrallen1/Pod-Perldoc/commit/6e1541d0bcb74a7b2b9ee3235d57953fb800bb67 Do not take the comment in the source code too literally. It doesn't really explain the problem well. OK sthen@ espie@ millert@ --- gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/perl') diff --git a/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm b/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm index be144df8084..fb163c50199 100644 --- a/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm +++ b/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm @@ -138,7 +138,14 @@ sub _get_podman_switches { my @switches = grep !m/^_/s, keys %$self; - push @switches, 'utf8' => 1; + # There needs to be a cleaner way to handle setting + # the UTF-8 flag, but for now, comment out this + # line because it often does the wrong thing. + # + # See RT #77465 + # + #push @switches, 'utf8' => 1; + $self->debug( "Pod::Man switches are [@switches]\n" ); return @switches; -- cgit v1.2.3