Bug 131563 - U3 breaks redhat-config-printer and cups
U3 breaks redhat-config-printer and cups
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-printer (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
: 128702 131864 131933 131954 132649 132948 133331 133472 133877 135435 135817 137777 138290 140927 141692 (view as bug list)
Depends On:
Blocks: 123574
  Show dependency treegraph
 
Reported: 2004-09-02 07:11 EDT by Terje Røsten
Modified: 2007-11-30 17:07 EST (History)
18 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-12-20 20:44:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Terje Røsten 2004-09-02 07:11:48 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040515 Firefox/0.8

Description of problem:
This not so clever hack:

def which_spooler ():
    """Return the name of the active spooler."""
    signal.signal (signal.SIGCHLD, signal.SIG_DFL)
    f = os.popen ('/usr/sbin/alternatives --display print')
    for l in f.readlines ():
        if l.startswith (" link currently points to"):
            which = l.split ('.')[1].strip ()
            break

    f.close ()
    return which

in the file /usr/share/printconf/util/cups_import.py

breaks, when locale is non-english.

See:

$ LC_ALL=no_NO /usr/sbin/alternatives --display print| head -3
print - status automatisk.
lenken peker nå til /usr/bin/lpr.cups

A hack on the hack fix this:


--- cups_import.py~     2004-03-06 14:19:02.000000000 +0100
+++ cups_import.py      2004-09-02 13:02:25.000000000 +0200
@@ -185,7 +185,7 @@
 def which_spooler ():
     """Return the name of the active spooler."""
     signal.signal (signal.SIGCHLD, signal.SIG_DFL)
-    f = os.popen ('/usr/sbin/alternatives --display print')
+    f = os.popen ('LC_ALL=C /usr/sbin/alternatives --display print')
     for l in f.readlines ():
         if l.startswith (" link currently points to"):
             which = l.split ('.')[1].strip ()


Not nice, but it works.





Version-Release number of selected component (if applicable):
edhat-config-printer-0.6.47.3.19-1
redhat-config-printer-0.6.47.3.19-1 cups-1.1.17-13.3.12 

How reproducible:
Always

Steps to Reproduce:
Use a non-english locale and use the printconf tool or start the cups
service.

Additional info:
Comment 1 Tim Waugh 2004-09-02 07:20:50 EDT
Thanks for reporting it.
Comment 2 Tim Waugh 2004-09-02 08:18:03 EDT
Please try 0.6.47.3.20-1 from this location:

ftp://people.redhat.com/twaugh/tmp/redhat-config-printer/

Comment 3 Terje Røsten 2004-09-02 13:28:13 EDT
I am running on x86-64, but a rebuild did the trick.

The bug is fixed, thanks for the quick response.
Comment 4 Tim Waugh 2004-09-02 13:30:33 EDT
Thanks for testing.  I'm leaving this open so that it can be tracked
for a future update.
Comment 5 Tim Waugh 2004-09-06 04:12:08 EDT
*** Bug 131864 has been marked as a duplicate of this bug. ***
Comment 6 Tim Waugh 2004-09-07 04:36:45 EDT
*** Bug 131933 has been marked as a duplicate of this bug. ***
Comment 7 Tim Waugh 2004-09-07 09:06:55 EDT
*** Bug 131954 has been marked as a duplicate of this bug. ***
Comment 8 Milan Kerslager 2004-09-21 09:52:14 EDT
*** Bug 132948 has been marked as a duplicate of this bug. ***
Comment 9 Milan Kerslager 2004-09-21 09:52:53 EDT
*** Bug 132649 has been marked as a duplicate of this bug. ***
Comment 10 Milan Kerslager 2004-09-21 10:43:58 EDT
If anybody interested to use LC_ALL=C fix only backported to the
current U3 redhat-config-printer, use my repository:

ftp://ftp.vslib.cz/pub/local/milan.kerslager/RHEL-3/fix.redhat-config-printer/
ftp://ftp.linux.cz/pub/linux/people/milan_kerslager/RHEL-3/
Comment 11 Tim Waugh 2004-09-23 07:14:18 EDT
*** Bug 133331 has been marked as a duplicate of this bug. ***
Comment 12 Tim Waugh 2004-09-24 05:43:20 EDT
*** Bug 133472 has been marked as a duplicate of this bug. ***
Comment 13 Tim Waugh 2004-09-28 04:38:10 EDT
*** Bug 133877 has been marked as a duplicate of this bug. ***
Comment 14 Tim Waugh 2004-09-28 08:34:47 EDT
*** Bug 128702 has been marked as a duplicate of this bug. ***
Comment 16 Tim Waugh 2004-10-13 09:10:30 EDT
*** Bug 135435 has been marked as a duplicate of this bug. ***
Comment 17 Tim Waugh 2004-10-15 05:03:57 EDT
*** Bug 135817 has been marked as a duplicate of this bug. ***
Comment 18 Tim Waugh 2004-11-01 04:25:02 EST
*** Bug 137777 has been marked as a duplicate of this bug. ***
Comment 19 adnet eric 2004-11-03 12:04:06 EST
I have the same bug with system-config-printer-0.6.98-1

Have you any solution for this version ?
Comment 20 adnet eric 2004-11-04 02:52:20 EST
I have the same bug with system-config-printer-0.6.98-1

Have you any solution for this version ?
Comment 21 adnet eric 2004-11-04 04:14:49 EST
My problem is solve, just make a :
rpm -Uvh --oldpackage cups-libs-1.1.20-6.i386.rpm
Comment 22 Tim Waugh 2004-11-08 11:06:26 EST
*** Bug 138290 has been marked as a duplicate of this bug. ***
Comment 23 Tim Waugh 2004-11-26 10:59:08 EST
*** Bug 140927 has been marked as a duplicate of this bug. ***
Comment 24 Tim Waugh 2004-12-03 04:50:11 EST
*** Bug 141692 has been marked as a duplicate of this bug. ***
Comment 25 John Flanagan 2004-12-20 20:44:23 EST
An advisory has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-473.html

Note You need to log in before you can comment on or make changes to this bug.