svn commit: r53058 - head/en_US.ISO8859-1/htdocs/cgi

Wolfram Schneider wosch at FreeBSD.org
Sat May 25 16:41:06 UTC 2019


Author: wosch
Date: Sat May 25 16:41:05 2019
New Revision: 53058
URL: https://svnweb.freebsd.org/changeset/doc/53058

Log:
  ascii format: warning message needs to be in ASCII as well

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sat May 25 16:39:41 2019	(r53057)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sat May 25 16:41:05 2019	(r53058)
@@ -1449,6 +1449,10 @@ sub man {
     &proc( *MAN, $command{'man'}, @manargs, "--", $name )
       || &mydie("$0: open of $command{'man'} command failed: $!\n");
     if ( eof(MAN) ) {
+        if ( $format eq "ascii" ) {
+            print "Sorry, no data found for '$html_name'\n";
+	    return;
+        }
 
         # print "X $command{'man'} @manargs -- x $name x\n";
         print qq{</pre>\n};


More information about the svn-doc-all mailing list