Description of problem:
on a system with a non-standard language setting, e.g. LANG=de_DE
redhat-config-printer crashes with python traceback.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. be root
2. export LANG=de_DE
Traceback (most recent call last):
File "/usr/sbin/redhat-config-printer", line 9, in ?
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
Printer configuration window appears
similar errormessage appears at boot time from /etc/rc3.d/S55cups
on a system with LANG="de_DE" in /etc/sysconfig/i18n
Reason of this problem:
file /usr/share/printconf/util/cups_import.py" lines 188 - 190
calls '/usr/sbin/alternatives --display print' and looks for the
string " link currently points to". If you do not use the standart
language in your system, this string will not be found.
Same construction in two other files in /usr/share/printconf/util/
file /usr/share/printconf/util/cups_import.py line 188
file /usr/share/printconf/util/printconf_conf.py line 1049
file /usr/share/printconf/util/queueTree.py line 236
f = os.popen ('/usr/sbin/alternatives --display print')
f = os.popen ('LC_ALL=C /usr/sbin/alternatives --display print')
Jupp, I've got the same problem at work using U3 for example, it would
be very nice to get a official fix with a rpm update for U4.
*** This bug has been marked as a duplicate of 131563 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.