Re: Problem with xman-1.1.3-1

2014-02-19 Thread Jon TURNEY
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

2014-02-17 Thread Doran Kangwai
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/