public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: ghostscript binmode weirdness
@ 2001-12-09 13:40 Gregory W. Bond
  2001-12-09 13:45 ` Robert Collins
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory W. Bond @ 2001-12-09 13:40 UTC (permalink / raw)
  To: cygwin

ok - i fixed the problem in the ghostscript port - how do i go about
getting the fix back into the cygwin distro?

p.s. the link you sent me to is very clear about what the CYGWIN=binmode
achieves - however, another part of the cywin manual (the one i happened
to be reading: http://cygwin.com/cygwin-ug-net/using-textbinary.html) is
not nearly so clear which led to my confusion


> On Fri, Dec 07, 2001 at 10:43:11AM -0500, Gregory W. Bond wrote:
> > thanks for the reply larry - i realize that fixing the ghostscript port would
> > be a solution, but my impression from reading the cygwin user manual is that
> > setting CYGWIN to binmode could serve as a workaround - in my case it didn't
> > and i don't understand why - i'm beginning to suspect that cygwin is ignoring
> > that i've set CYGWIN to binmode which would be a cygwin bug
>
> That's not what the CYGWIN=binmode setting is for.
>
> http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
>
> The workaround you're talking about would be to use binary mount points.
>
> Corinna
>

--
Gregory W. Bond
AT&T Labs - Research
180 Park Avenue, Rm. D273, Bldg. 103
P.O. Box 971, Florham Park, NJ, 07932-0971, USA
tel: (973) 360 7216 fax: (973) 360 8187



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ghostscript binmode weirdness
  2001-12-09 13:40 ghostscript binmode weirdness Gregory W. Bond
@ 2001-12-09 13:45 ` Robert Collins
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Collins @ 2001-12-09 13:45 UTC (permalink / raw)
  To: Gregory W. Bond, cygwin

Send a patch thats contains your fix to the Ghostscript maintainer, cc'd
to cygwin-patches.

Rob
===
----- Original Message -----
From: "Gregory W. Bond" <bond@research.att.com>
To: <cygwin@cygwin.com>
Sent: Monday, December 10, 2001 8:32 AM
Subject: Re: ghostscript binmode weirdness


> ok - i fixed the problem in the ghostscript port - how do i go about
> getting the fix back into the cygwin distro?
>
> p.s. the link you sent me to is very clear about what the
CYGWIN=binmode
> achieves - however, another part of the cywin manual (the one i
happened
> to be reading: http://cygwin.com/cygwin-ug-net/using-textbinary.html)
is
> not nearly so clear which led to my confusion
>
>
> > On Fri, Dec 07, 2001 at 10:43:11AM -0500, Gregory W. Bond wrote:
> > > thanks for the reply larry - i realize that fixing the ghostscript
port would
> > > be a solution, but my impression from reading the cygwin user
manual is that
> > > setting CYGWIN to binmode could serve as a workaround - in my case
it didn't
> > > and i don't understand why - i'm beginning to suspect that cygwin
is ignoring
> > > that i've set CYGWIN to binmode which would be a cygwin bug
> >
> > That's not what the CYGWIN=binmode setting is for.
> >
> > http://cygwin.com/cygwin-ug-net/using-cygwinenv.html
> >
> > The workaround you're talking about would be to use binary mount
points.
> >
> > Corinna
> >
>
> --
> Gregory W. Bond
> AT&T Labs - Research
> 180 Park Avenue, Rm. D273, Bldg. 103
> P.O. Box 971, Florham Park, NJ, 07932-0971, USA
> tel: (973) 360 7216 fax: (973) 360 8187
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ghostscript binmode weirdness
  2001-12-07  7:55   ` Gregory W. Bond
@ 2001-12-07  8:14     ` Corinna Vinschen
  0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2001-12-07  8:14 UTC (permalink / raw)
  To: cygwin

On Fri, Dec 07, 2001 at 10:43:11AM -0500, Gregory W. Bond wrote:
> thanks for the reply larry - i realize that fixing the ghostscript port would
> be a solution, but my impression from reading the cygwin user manual is that
> setting CYGWIN to binmode could serve as a workaround - in my case it didn't
> and i don't understand why - i'm beginning to suspect that cygwin is ignoring
> that i've set CYGWIN to binmode which would be a cygwin bug

That's not what the CYGWIN=binmode setting is for.

http://cygwin.com/cygwin-ug-net/using-cygwinenv.html

The workaround you're talking about would be to use binary mount points.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ghostscript binmode weirdness
  2001-12-07  6:31 ` Larry Hall (RFK Partners, Inc)
@ 2001-12-07  7:55   ` Gregory W. Bond
  2001-12-07  8:14     ` Corinna Vinschen
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory W. Bond @ 2001-12-07  7:55 UTC (permalink / raw)
  To: Larry Hall (RFK Partners, Inc); +Cc: cygwin

thanks for the reply larry - i realize that fixing the ghostscript port would
be a solution, but my impression from reading the cygwin user manual is that
setting CYGWIN to binmode could serve as a workaround - in my case it didn't
and i don't understand why - i'm beginning to suspect that cygwin is ignoring
that i've set CYGWIN to binmode which would be a cygwin bug

"Larry Hall (RFK Partners, Inc)" wrote:

> At 11:56 PM 12/6/2001, Gregory W. Bond wrote:
> >i cannot get ghostscript to generate non-corrupted pdf files unless
> >everything is happens on binmode mounts - is there no way that i can
> >force binmode treatment on a text mount? i've read and re-read the
> >cygwin manual and experimented with a zillion variations but nothing
> >seems to work
> >
> >i've isolated the problem to the point when ghostscript writes the pdf
> >file - if it writes the file to a textmode mount it is guaranteed to be
> >corrupted due to the translation of LF to CRLF - i can't seem to prevent
> >this from occurring even when the CYGWIN var is set to binmode prior to
> >launching any cygwin shell - i wish i could move all my mounts to
> >binmode but this will screw up too many other things - anyone have any
> >suggestions for me?
>
> Best suggestion - port ghostscript properly so that it always writes
> binary files where it needs to.
>
> Everything else is just a hack to avoid this eventuality...
>
> Good luck,
>
> Larry Hall                              lhall@rfk.com
> RFK Partners, Inc.                      http://www.rfk.com
> 838 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - FAX

--
Gregory W. Bond
AT&T Labs - Research
180 Park Avenue, Rm. D273, Bldg. 103
P.O. Box 971, Florham Park, NJ, 07932-0971, USA
tel: (973) 360 7216 fax: (973) 360 8187



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ghostscript binmode weirdness
  2001-12-06 21:06 Gregory W. Bond
@ 2001-12-07  6:31 ` Larry Hall (RFK Partners, Inc)
  2001-12-07  7:55   ` Gregory W. Bond
  0 siblings, 1 reply; 6+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-12-07  6:31 UTC (permalink / raw)
  To: Gregory W. Bond, cygwin

At 11:56 PM 12/6/2001, Gregory W. Bond wrote:
>i cannot get ghostscript to generate non-corrupted pdf files unless
>everything is happens on binmode mounts - is there no way that i can
>force binmode treatment on a text mount? i've read and re-read the
>cygwin manual and experimented with a zillion variations but nothing
>seems to work
>
>i've isolated the problem to the point when ghostscript writes the pdf
>file - if it writes the file to a textmode mount it is guaranteed to be
>corrupted due to the translation of LF to CRLF - i can't seem to prevent
>this from occurring even when the CYGWIN var is set to binmode prior to
>launching any cygwin shell - i wish i could move all my mounts to
>binmode but this will screw up too many other things - anyone have any
>suggestions for me?

Best suggestion - port ghostscript properly so that it always writes 
binary files where it needs to.

Everything else is just a hack to avoid this eventuality...

Good luck,


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* ghostscript binmode weirdness
@ 2001-12-06 21:06 Gregory W. Bond
  2001-12-07  6:31 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 6+ messages in thread
From: Gregory W. Bond @ 2001-12-06 21:06 UTC (permalink / raw)
  To: cygwin

i cannot get ghostscript to generate non-corrupted pdf files unless
everything is happens on binmode mounts - is there no way that i can
force binmode treatment on a text mount? i've read and re-read the
cygwin manual and experimented with a zillion variations but nothing
seems to work

i've isolated the problem to the point when ghostscript writes the pdf
file - if it writes the file to a textmode mount it is guaranteed to be
corrupted due to the translation of LF to CRLF - i can't seem to prevent
this from occurring even when the CYGWIN var is set to binmode prior to
launching any cygwin shell - i wish i could move all my mounts to
binmode but this will screw up too many other things - anyone have any
suggestions for me?

here are a few details concerning the problem

the value of CYGWIN is set prior to launching any cygwin shell

$ echo $CYGWIN
binmode

i'm using the latest cygwin version of ghostscript

$ gs -version
GNU Ghostscript 6.51 (2001-03-28)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.

it doesn't matter how i choose to write the pdf file, it always ends up
corrupted when it's written to a textmode mount

gs -sDEVICE=pdfwrite -q -sOutputFile=blah.pdf - < blah.ps

cat blah.ps | gs -sDEVICE=pdfwrite -q - > blah.pdf

here are my mounts - i'm running ghostscript in a directory on the one
textmode mount

$ mount
C:\cygwin\bin on /usr/bin type user (binmode)
C:\cygwin\lib on /usr/lib type user (binmode)
C:\cygwin on / type user (binmode)
c:\users on /home type system (textmode)
c: on /cygdrive/c type user (binmode,noumount)




--
Gregory W. Bond
AT&T Labs - Research
180 Park Avenue, Rm. D273, Bldg. 103
P.O. Box 971, Florham Park, NJ, 07932-0971, USA
tel: (973) 360 7216 fax: (973) 360 8187



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-12-09 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-09 13:40 ghostscript binmode weirdness Gregory W. Bond
2001-12-09 13:45 ` Robert Collins
  -- strict thread matches above, loose matches on Subject: below --
2001-12-06 21:06 Gregory W. Bond
2001-12-07  6:31 ` Larry Hall (RFK Partners, Inc)
2001-12-07  7:55   ` Gregory W. Bond
2001-12-07  8:14     ` Corinna Vinschen

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).