Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 133877

Summary: locale problem with redhat-config-printer
Product: Red Hat Enterprise Linux 3 Reporter: dhe
Component: redhat-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: eguan
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:05:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dhe 2004-09-28 07:18:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.3)
Gecko/20040803

Description of problem:
The redhat-config-printer crashed when the default language is
Simplified Chinese or Traditional Chinese. 



Version-Release number of selected component (if applicable):
redhat-config-printer-0.6.47.3.19

How reproducible:
Always

Steps to Reproduce:
1. env | grep LANG LANG=zh_CN.GB2312
2. redhat-config-printer
3.
    
#redhat-config-printer
Actual Results:  Traceback (most recent call last):
  File "/usr/sbin/redhat-config-printer", line 9, in ?
    import queueTree
  File "/usr/share/printconf/util/queueTree.py", line 945, in ?
    queueTree()
  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
import_needed
    which = which_spooler ()
  File "/usr/share/printconf/util/cups_import.py", line 195, in
which_spooler
    return which
UnboundLocalError: local variable 'which' referenced before assignment

Additional info:

As Kazunori Fukushige( kfukushi ) tested, this problem also
happens on the system where either Japanese, Korean, French or German
is configured as the default lauguage.

Current solution: 
Set:  LANG=C
This problem doesn't happen any more.
 ( tested by Martin C. Messer  marty)

Comment 1 Tim Waugh 2004-09-28 08:38:09 UTC

*** This bug has been marked as a duplicate of 131563 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:05:57 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.