public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-xfree@cygwin.com
Cc: doran.kangwai@gmail.com
Subject: Re: Problem with xman-1.1.3-1
Date: Wed, 19 Feb 2014 15:02:00 -0000	[thread overview]
Message-ID: <5304C798.4090300@dronecode.org.uk> (raw)
In-Reply-To: <CANexZ10-MtELC8Nd6HUykZHtSK5wCOwb4bAb-4QhkwOWVTmmog@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]

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


[-- Attachment #2: 0001-Use-same-FORMAT-command-on-cygwin-as-on-linux-in-HAN.patch --]
[-- Type: text/plain, Size: 807 bytes --]

>From ea0ecbfa007e03e29f80f976472a28e37cf59931 Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Date: Wed, 19 Feb 2014 14:51:34 +0000
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.turney@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



[-- Attachment #3: Type: text/plain, Size: 223 bytes --]

--
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/

  reply	other threads:[~2014-02-19 15:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18  7:56 Doran Kangwai
2014-02-19 15:02 ` Jon TURNEY [this message]
2014-02-19 18:02   ` [ANNOUNCEMENT] Updated: xman-1.1.3-2 Yaakov (Cygwin/X)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5304C798.4090300@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=doran.kangwai@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).