diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-06-04 18:31:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-06-04 18:31:11 +0000 |
commit | 513df7a406bc38390e30ef82e751199c396d879a (patch) | |
tree | 9687395f3e2edbd746c6014061556f88023daf8f /gnu/usr.bin | |
parent | d6de1dca2f7eeab805a16e0f4240215556b865bd (diff) |
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@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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; |