Re: Problem with xman-1.1.3-1
On 18/02/2014 07:56, Doran Kangwai wrote: When I use xman 1.1.3-1 to view man pages it renders the pages as postscript. It seems to omit the step to process the PS. Close, but not quite right. groff is not being given the -T option to set the output format, so it's producing the default, ps So I see stuff like this %!PS-Adobe-3.0 %%Creator: groff version 1.22.2 ... ... Using man to display the page works fine. When I use xman 1.1.2-1 the man page is also rendered correctly. Thanks for reporting this problem, and the clear reproduction steps. I can reproduce the problem, and bisecting points to this commit [1], which changes the formatting command used by xman. Yaakov, Attached is trivial patch to fix. If it looks good to you can you apply and rebuild xman? [1] http://cgit.freedesktop.org/xorg/app/xman/commit/?id=d25a3b87ce9fdf950b42f45b644242d72e7167b3 From ea0ecbfa007e03e29f80f976472a28e37cf59931 Mon Sep 17 00:00:00 2001 From: Jon TURNEY jon.tur...@dronecode.org.uk Date: Wed, 19 Feb 2014 14:51:34 + Subject: [PATCH app/xman] Use same FORMAT command on cygwin as on linux in HANDLE_ROFFSEQ case as well Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk --- vendor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor.h b/vendor.h index 548ded6..06df38f 100644 --- a/vendor.h +++ b/vendor.h @@ -159,7 +159,7 @@ from the X Consortium. # define REFER refer # if defined(CSRG_BASED) # define FORMAT nroff -mandoc -# elif defined(linux) +# elif defined(linux) || defined(__CYGWIN__) # define FORMAT GROFF_NO_SGR= groff -Tlatin1 -mandoc # elif defined(__DARWIN__) # define FORMAT nroff -man -- 1.8.3.4 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Problem with xman-1.1.3-1
Hi, When I use xman 1.1.3-1 to view man pages it renders the pages as postscript. It seems to omit the step to process the PS. So I see stuff like this %!PS-Adobe-3.0 %%Creator: groff version 1.22.2 ... ... Using man to display the page works fine. When I use xman 1.1.2-1 the man page is also rendered correctly. Steps to repro 1)Install cygwin using setup-x86.exe (version 2.831). I choose all of Base (Default) and from X11 xinit xman xorg-server xorg-server-common xterm X-start-menu-icons 2) Start-Cygwin-X-XWin Server 3) From xterm type xman -notopbox 4) Confirm xman version using Options-Show Version 5) Display man page for cat by Options-Display Directory and selecting cat 6) You should see postscript displayed for xman 1.1.3-1 I downloaded xman-1.2.2-1.tar.bz2 and using xman.exe from there I confirmed that I can successfully see man pages. cygcheck.out and XWin.0.log attached. Note that files contain XXREDACTEDXX where information was redacted. -- Doran Kangwai cygcheck.out Description: Binary data XWin.0.log Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: Problem with xman
Rodrigo, Thank you. Your mod to /bin/nroff provided as an attachment at http://www.cygwin.com/ml/cygwin-xfree/2004-03/msg00299.html worked perfectly. That is, an xman page now appears with the expected enhanced view rather than the escape codes. As a separate issue, I have noticed that any attempt to view a second xman page is defeated (at least in XP Pro) with an error message as follows: Xman Warning: Something went wrong trying to run the command: cd /usr/man ; tbl /usr/man/man1/{requested page} | neqn | nroff -man ..{rest of msg off screen} and cannot create /tmp/xman002688: permission denied whose solution may reside in something to do with permissions rather than Xman ... Fergus
RE: Problem with xman
Sorry, theb urls were wrong in the previous message http://sources.redhat.com/ml/cygwin-xfree/2004-02/msg00158.html http://sources.redhat.com/ml/cygwin-xfree/2004-02/msg00185.html R.M.
Problem with xman
I'm running XWin -51 and the 20040306 snapshot. If I try xman then everything looks as though it's going to work beautifully (and it does, as far as file access etc goes) but a typical man page, when it appears, shows control instructions like this: 1mNAME0m diff - compare files line by line 1mSYNOPSIS0m 1mdiff 22m[4mOPTION24m] ... 4mFILES0m etc. Anybody else get this? Do I need to do something simple to correct this behaviour? Fergus