File 0001-w3mman-don-t-show-invalid-characters-bsc-950800.patch of Package w3m

From c3e30bc08f5a23ab77e6e70484ead9604e433121 Mon Sep 17 00:00:00 2001
From: Thomas Blume <Thomas.Blume@suse.com>
Date: Thu, 24 Nov 2016 11:53:59 +0100
Subject: [PATCH] w3mman: don't show invalid characters  (bsc#950800)

[tblume: port of w3mman-formatting.patch]
---
 scripts/w3mman/w3mman2html.cgi.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/w3mman/w3mman2html.cgi.in b/scripts/w3mman/w3mman2html.cgi.in
index 2cd00f9..0ff63ee 100644
--- a/scripts/w3mman/w3mman2html.cgi.in
+++ b/scripts/w3mman/w3mman2html.cgi.in
@@ -75,7 +75,7 @@ if ($query{"local"}) {
   if (! ($file =~ /^\//)) {
     $file = $query{"pwd"} . '/' . $file;
   }
-  open(F, "MAN_KEEP_FORMATTING=1 $MAN -l $file 2> /dev/null |");
+  open(F, "$MAN -l $file 2> /dev/null |");
 } else {
   $man = $query{"man"};
   if ($man =~ s/\((\w+)\)$//) {
@@ -91,7 +91,7 @@ if ($query{"local"}) {
 
   $section =~ s:([^-\w\200-\377.,])::g;
   $man =~ s:([^-\w\200-\377.,])::g;
-  open(F, "MAN_KEEP_FORMATTING=1 $MAN $section $man 2> /dev/null |");
+  open(F, "$MAN $section $man 2> /dev/null |");
 }
 $ok = 0;
 undef $header;
-- 
2.6.6
openSUSE Build Service is sponsored by