Bug 133331 - printconf does not work with non-english locale
Summary: printconf does not work with non-english locale
Keywords:
Status: CLOSED DUPLICATE of bug 131563
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-printer
Version: 3.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-23 08:41 UTC by Peter Klotz
Modified: 2007-11-30 22:07 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Peter Klotz 2004-09-23 08:41:16 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040207 Firefox/0.8

Description of problem:
printconf does not start. The reason is line 190 in
/usr/share/printconf/util/cups_import.py:
        if l.startswith (" link currently points to"):

Running /usr/sbin/alternatives with de_DE@euro as LANG produces this
result however:
...
 Link verweist auf /usr/bin/lpr.cups
...

This should be fixed to work under all locales.

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

How reproducible:
Always

Steps to Reproduce:
1. Set de_DE@euro as locale
2. Call printconf
    

Actual Results:  [root@icotanis root]# printconf
Traceback (most recent call last):
  File "/usr/sbin/printconf", 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


Expected Results:  printer configuration should start under all locales.

Additional info:

Workaround, which will start the configuration (albeit in english
language)
[root@icotanis root]# export LANG=en_US
[root@icotanis root]# printconf

Comment 1 Tim Waugh 2004-09-23 11:14:11 UTC

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

Comment 2 Red Hat Bugzilla 2006-02-21 19:05:48 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.