tags 372939 fixed-upstream
thanks

On Mon, Jun 12, 2006 at 04:18:39PM +0200, Vincent Lefevre wrote:
> "man --debug 5 tin" gives the following to stderr:
[...]
> When typing "man 5 tin" (and the same problem occurs with other man
> pages), the above warnings are sometimes displayed in the pager and
> corrupts the output. I need to type Ctrl-L or something similar.
> 
> These warnings should be filtered out automatically.

Thanks for the suggestion. I've implemented this upstream, though I made
sure to preserve the warnings when output is not being directed to a
pager in order to retain their usefulness to tools such as lintian that
call man noninteractively.

Mon Aug 20 00:10:49 BST 2007  Colin Watson  <[EMAIL PROTECTED]>

        Discard stderr from formatting processes when outputting to a pager,
        to avoid visual corruption from any error messages (thanks, Vincent
        Lefevre; Debian bug #372939).

        * lib/pipeline.h (struct command): Add discard_err member.
        * lib/pipeline.c (command_new, command_dup): Initialise discard_err.
          (pipeline_start): Redirect the child's stderr to /dev/null if
          discard_err is set.
        * src/man.c (discard_stderr): New function to set discard_err on all
          commands in a pipeline.
          (format_display_and_save, format_display): Use it on format_cmd.
        * docs/NEWS: Document this.

Cheers,

-- 
Colin Watson                                       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to