Public bug reported:

I have made slight tweaks to the w3mman2html.cgi script supplied with w3m so 
that it is usable by other browsers, in particular lynx and firefox (I also use 
the script with lynx under windows/cygwin). However, an un-tweaked version will 
demonstrate this problem. Through Ubuntu 11.10, I was able to execute the 
script in lynx using the lynxcgi protocol. In Ubuntu 12.04, the script still 
works for w3m, of course, and for firefox; however, it no longer works for 
lynx. In order to try to narrow down the source of the problem, I altered the 
cgi script so that the command it issued wound up as:
/usr/bin/man -d apropos 2>temp.mand
(Note that this problem is not restricted to the apropos man page; all pages 
show the same results.)
Comparing the temp.mand files, which I am attaching to this report, the 
successful w3m run produces a 389-line log. The unsuccesful lynx version 
produces a 388-line log; the first 379 are identical to w3m, followed by an 
insertion:
gzip: standard input: Bad file descriptor
They then compare equal on the next line, but then 4 lines of w3m (indicating 
success) are replaced with 2 lines for lynx (indicating failure). The final 5 
lines of each file then compare equal. Here are the differences reported by 
diff:

380d379
< gzip: standard input: Bad file descriptor
382,383c381,384
< cat-saver exited with status 1
< unlinking temporary cat
---
> cat-saver exited with status 0
> fixing temporary cat's mode
> renaming temporary cat to /var/cache/man/cat1/apropos.1.gz
> setting modtime on cat file /var/cache/man/cat1/apropos.1.gz

To get to this situation, the lynx.cfg file needs the following:
TRUSTED_LYNXCGI:        /usr/lib/w3m/cgi-bin
LYNXCGI_ENVIRONMENT:PATH
LYNXCGI_ENVIRONMENT:LANG

The command to demonstrate the problem would then be:
lynx lynxcgi:/usr/lib/w3m/cgi-bin/w3mman2html.cgi?apropos

The command for w3m is: w3mman apropos

It is, of course, possible that the problem lies not with man-db but
with lynx (it seems very unlikely to be with the cgi script). However,
since man debug clearly shows a difference between the results of the
script when run under one vs. the other, I am starting by reporting it
as a man-db bug.

** Affects: man-db (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/992271

Title:
  man command not working in lynxcgi script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/man-db/+bug/992271/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to