Red Hat Bugzilla – Bug 135435
redhat-config-printer doesn't execute when the environment variable LANG is set to spanish
Last modified: 2007-11-30 17:07:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Description of problem:
when the environment variable LANG is set to es_ES
redhat-config-printer crashes with the following error:
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
Looking in the code of /usr/share/printconf/util/cups_import.py I saw
that in line 190:
if l.startswith (" link currently points to"):
there is a reference to the output of the command "alternative", wich
in prior versions output allways in english, but now it outputs
depending on the LANG variable.
So, the python script can't determine wich spooler is the system using.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Ensure that you are using chkconfig-1.3.11-0.3
2. export LANG=es_ES
3. execute redhat-config-printer
*** This bug has been marked as a duplicate of 131563 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.