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

This commit is contained in:
Wolfram Schneider 2019-05-25 16:41:05 +00:00
parent 354ea74246
commit 218faee06a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53058

View file

@ -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};