Mailinglist Archive: opensuse-bugs (5007 mails)

< Previous Next >
[Bug 503774] cups fails to set -o 'HPOptionDuplexer=True' for HP 4050 PPD
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 22 May 2009 06:52:48 -0600 (MDT)
  • Message-id: <20090522125248.9B4AB24550F@xxxxxxxxxxxxxxxxxxxxxx>
http://bugzilla.novell.com/show_bug.cgi?id=503774

User jsmeix@xxxxxxxxxx added comment
http://bugzilla.novell.com/show_bug.cgi?id=503774#c1





--- Comment #1 from Johannes Meixner <jsmeix@xxxxxxxxxx> 2009-05-22 06:52:44
MDT ---
'_' is a possible character in a main keyword but
/usr/lib/YaST2/bin/determine_printer_driver_options
ignores it
------------------------------------------------------------------
# Simply delete unusual (in particular all non-ASCII) characters
# but keep the delimiters / * and newline:
MAXIMUM_WAIT="10"
$LPOPTIONS -h localhost -p $QUEUE -l \
| tr -c -d '[:alnum:] <>/:\*\n' >$TMP_DATA &
------------------------------------------------------------------
so that YaST builds its command with wrong main keywords
using e.g. "HPOptionTray..." instead of "HPOption_Tray...".

A first idea for a fix (it works at least for me):
------------------------------------------------------------------
# The PPD specification reads that main keywords can contain
# any printable ASCII character within the range of decimal 33
# to decimal 126 inclusive. Also keep newline and space
# but exclude " which is needed as YCP string delimiter:
MAXIMUM_WAIT="10"
$LPOPTIONS -h localhost -p $QUEUE -l \
| tr -c -d '\n \041\043-\176' >$TMP_DATA &
------------------------------------------------------------------

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References