delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/13/12:03:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20030613160251.14474.qmail@web21410.mail.yahoo.com>
Date: Fri, 13 Jun 2003 09:02:51 -0700 (PDT)
From: Rick Rankin <rick_rankin AT yahoo DOT com>
Subject: Re: patch in cygutil/lpr
To: gilles civario <gilles DOT civario AT cea DOT fr>, cygwin AT cygwin DOT com
In-Reply-To: <3EE80E77.4080606@cea.fr>
MIME-Version: 1.0

Gilles,

I will make sure this gets into the "official" version, although I have no
control over when it will be released. That's up to Chuck Wilson.

--Rick
--- gilles civario <gilles DOT civario AT cea DOT fr> wrote:
> 
> Hello.
> 
> I've found that the new version of lpr provided with cygutils-1.1.4 no longer
> works with my PostScript network printer. With the previous version of
> cygutils
> (1.1.3), I had to change the datatype provided to StartDocPrinter from "raw"
> to "RAW". This time, the trouble I've encounted wath this one :
> 
> $ ./lpr.exe lpr.1
> lpr: printer error: StartDocPrinter error: Invalide descriptor
> $ uname -a
> CYGWIN_NT-5.0 hepatique 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown
> unknown Cygwin
> 
> After some searches, I've found a solution by changing the DesidedAccess of
> the
> PRINTER_DEFAULTS argument in OpenPrinter, from PRINTER_ALL_ACCESS to
> PRINTER_ACCESS_USE.
> 
> $ diff -urN Printer.cc.orig Printer.cc
> --- Printer.cc.orig     2003-06-11 05:01:58.000000000 +0200
> +++ Printer.cc  2003-06-12 07:10:06.000000000 +0200
> @@ -281,7 +281,7 @@
> 
>     prDef.pDatatype = "RAW";
>     prDef.pDevMode = m_devMode;
> -  prDef.DesiredAccess = PRINTER_ALL_ACCESS;
> +  prDef.DesiredAccess = PRINTER_ACCESS_USE;
> 
>     if (m_devHandle == INVALID_HANDLE_VALUE &&
>         !OpenPrinter(tstr(m_devName), &m_devHandle, &prDef))
> 
> 
> And now, it works perfectly for me.
> 
> Regards.
> 
> Gilles Civario.
> 
> 
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019