Red Hat Bugzilla – Bug 132948
r-c-p utility and cups service have been broken started in non-english locales
Last modified: 2007-11-30 17:07:04 EST
Description of problem:
redhat-config-printer utility has broken call of alternatives tool.
[root@localhost root]# locale
[root@localhost root]# redhat-config-printer
Traceback (most recent call last):
File "/usr/sbin/redhat-config-printer", line 9, in ?
debug1: channel 1: FORCE input drain
File "/usr/share/printconf/util/queueTree.py", line 945, in ?
File "/usr/share/printconf/util/queueTree.py", line 102, in __init__
if cups_import.import_needed ():
File "/usr/share/printconf/util/cups_import.py", line 200, in
which = which_spooler ()
File "/usr/share/printconf/util/cups_import.py", line 195, in
UnboundLocalError: local variable 'which' referenced before assignment
Version-Release number of selected component (if applicable):
[root@localhost root]# rpm -q redhat-config-printer
Only try to start it.
I propose to write 'LC_MESSAGES=C /usr/sbin/alternatives ...' into
/usr/share/printconf/util/cups_import.py as quick fix.
Created attachment 104009 [details]
quick fix of described problem
The alternatives call are discovered at three files:
*** This bug has been marked as a duplicate of 131563 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.