Bug 131954 - LANG=C not set when querying /usr/sbin/alternatives
Summary: LANG=C not set when querying /usr/sbin/alternatives
Status: CLOSED DUPLICATE of bug 131563
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: cups
Version: 3.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-09-07 13:02 UTC by Yue Shi Lai
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-02-21 19:05:30 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Yue Shi Lai 2004-09-07 13:02:58 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 
7.54  [en]

Description of problem:
Exactly the same issue as Bug 124217 in Fedora Core.



it should read

f = os.popen ('LANG=C /usr/sbin/alternatives --display print')

instead of

f = os.popen ('/usr/sbin/alternatives --display print')

as e.g. for German locale, the produced message is

"Link verweist auf..."

rather than

"Link currently points on..."

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Issue /etc/init.d/cups restart


1. Start redhat-config-printer  

Actual Results:  File "/usr/share/printconf/util/queueTree.py", line 
243, in get_active_spooler    return which
UnboundLocalError: local variable 'which' referenced before 

(Because which never was assigned, as no "Link currently points on" 
string match occured.)

Expected Results:  No error message should occur.

Additional info:

Comment 1 Tim Waugh 2004-09-07 13:06:53 UTC

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

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

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