develooper Front page | perl.perl5.porters | Postings from December 2004

[perl #31997] 'perldoc -oman' is incorrectly rendered under Cygwin.

From:
Steve Peters via RT
Date:
December 9, 2004 08:23
Subject:
[perl #31997] 'perldoc -oman' is incorrectly rendered under Cygwin.
Message ID:
rt-3.0.11-31997-102477.17.8579207683732@perl.org
> [stmpeters - Wed Dec 01 12:20:44 2004]:
> 
> > [stmpeters - Tue Oct 19 07:13:13 2004]:
> > 
> > > [dolmen@users.sourceforge.net - Fri Oct 15 08:32:53 2004]:
> > > 
> > > This is a bug report for perl from dolmen@users.sourceforge.net,
> > > generated with the help of perlbug 1.35 running under perl v5.8.5.
> > > 
> > > (but manually sent by email)
> > > 
> > > -----------------------------------------------------------------
> > > 
> > > 'perldoc -oman' is incorrectly rendered under Cygwin.
> > > I tried with the following terminals: cygwin, xterm, rxvt.
> > > 
> > > The problem is that the nroff output is piped to the default
> > > pager which is not defined for cygwin.
> > > Under cygwin the default render for man is
> > > "/usr/bin/less -isrR" (see -P option for man man)
> > > 
> > > See sub pagers_guessing in module Pod::Perldoc.
> > > 
> > > Workaround:
> > >  under the shell, define PERLDOC_PAGER="less -isrR"
> > > 
> > > What to do do solve this bug?
> > >  Add this block to Perldoc.pm, sub pagers_guessing
> > >     elsif (IS_Cygwin) {
> > >          push @pagers, '/usr/bin/less -isrR';
> > >     }
> > > 
> > > Olivier Mengué.
> > > 
> > 
> > I could not get your change to work because the pager "/usr/bin/less" is
> > first in the @pagers array and used.  I did, however, get it to work
> > with "unshift @pagers, '/usr/bin/less -isrR';"  It does make nice, easy
> > to read perldoc's on Cygwin, so it'd be great to get this in.  A patch
> > is included.
> > 
> > Steve Peters
> > 
> 
> This problem has been fixed in Pod::Perldoc 3.14.  Can this version
> please be integrated in?
> 
> Thanks in advance!
> 

Pod::Perldoc 3.14 integrated with change 23630.  Thanks!



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About