Bug 131933 - /usr/sbin/alternatives's message translation breaks printtool
/usr/sbin/alternatives's message translation breaks printtool
Status: CLOSED DUPLICATE of bug 131563
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: chkconfig (Show other bugs)
3.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-06 21:49 EDT by CHIKAMA Masaki
Modified: 2014-03-16 22:48 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 14:05:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description CHIKAMA Masaki 2004-09-06 21:49:15 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4.3)
Gecko/20040803

Description of problem:
When I use printtool command with LANG=ja_JP,
I cannot execute command with these messages.

Traceback (most recent call last):
  File "/usr/sbin/printtool", line 7, 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


This is because in cups_import.py

def which_spooler ():
    """Return the name of the active spooler."""
    signal.signal (signal.SIGCHLD, signal.SIG_DFL)
    f = os.popen ('/usr/sbin/alternatives --display print')
    for l in f.readlines ():
        if l.startswith (" link currently points to"):
            which = l.split ('.')[1].strip ()
            break
 
    f.close ()
    return which

the output message "/usr/sbin/alternatives --display print" 
is translated (into Japanese).



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

How reproducible:
Always

Steps to Reproduce:
1. LANG=ja_JP printttool
2.
3.
    

Additional info:
Comment 1 Tim Waugh 2004-09-07 04:36:43 EDT

*** This bug has been marked as a duplicate of 131563 ***
Comment 2 CHIKAMA Masaki 2004-09-07 05:31:39 EDT
Thank you. The new package in #131563 fix the problem.
Comment 3 Red Hat Bugzilla 2006-02-21 14:05:29 EST
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.