Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <415135EE0A9D1146928125CB9A0B7A4E021D0A96@pecsex02.goodrich.root.local> From: "Gates, Roger" To: "'cygwin AT cygwin DOT com'" Subject: Re: Issue with lpr in cygwin 1.5.13-1 Date: Thu, 10 Mar 2005 11:37:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" On Mar 8 11:17, Frank Jacobs wrote: > If I attempt to run lpr under cygwin 1.5.13-1, I get the following > error: > > lpr: printer error: can't open '' for writing: The printer name is > invalid. > > > However, if I downgrade to cygwin 1.5.12-1, lpr works fine. > > Note that the issue does not appear to be due to the cygutils version > (the package that lpr is in). I've tried both version 1.2.6-1 and > 1.2.5-1 of cygutils with cygwin 1.5.13-1 and I still get the same > error message. With both cygwin 1.5.13.1 and the cygwin1-20050308.dll.bz2 snapshot I also get the same error message. It works OK using 1.5.12-1. I believe the problem may be in cygutils-1.2.6/src/lpr/lpr.cc at the call cygwin_conv_to_win32_path(printerName.c_str(), winPrinter); If I have a network printer in the environment variable export PRINTER="//pecsele/prt106" or explicitly on the command line lpr -d //pecsele/prt106 I have the problem in 1.5.13-1 and the snapshot. Using the debug switch on lpr gives a list of printer names. $ export PRINTER="//pecsele/prt106" $ echo | lpr -D Windows printer name = '' isWindows9x = 0, isWindows2K_NT4 = 1 Printer name: 'HP LaserJet 4000 Series PS', Port name: 'prt106' Printer name: 'Generic / Text Only', Port name: 'FILE:' Printer name: 'Apple LaserWriter 16/600 PS', Port name: 'FILE:' Printer name: 'Acrobat Distiller', Port name: 'C:\Documents and Settings\All Users\Desktop\*.pdf' Printer name: '\\Xerox\XEROX470', Port name: '\\Xerox\XEROX470' Printer name: '\\b2600\sw4050n', Port name: '\\b2600\sw4050n' Printer name: '\\b2600\sw2100', Port name: '\\b2600\sw2100' lpr: printer error: can't open '' for writing: The printer name is invalid. If I use one of the listed names, e.g., export PRINTER="HP LaserJet 4000 Series PS" then lpr works with 1.5.13-1 and the 20050308 snapshot. Could this be due to a change in 1.5.13-1's handling of "//"? Roger L. Gates -- 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/