diff options
author | 2013-06-04 18:31:10 +0000 | |
---|---|---|
committer | 2013-06-04 18:31:10 +0000 | |
commit | af9ddab10107a971c8e64c855fce72411d03a647 (patch) | |
tree | ed87c6e33ea8a6f7d6ebdd0751988b1b2e8d5994 /gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm | |
parent | fusebufsize update (diff) | |
download | wireguard-openbsd-af9ddab10107a971c8e64c855fce72411d03a647.tar.xz wireguard-openbsd-af9ddab10107a971c8e64c855fce72411d03a647.zip |
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/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/ToMan.pm')
-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; |