Bug 81001 - Apparent locale problem with python scripts
Apparent locale problem with python scripts
Status: CLOSED DUPLICATE of bug 76104
Product: Red Hat Linux
Classification: Retired
Component: rhpl (Show other bugs)
8.0
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Jeremy Katz
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-03 03:30 EST by Rick Stevens
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 13:50:53 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 Rick Stevens 2003-01-03 03:30:26 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

Description of problem:
An attempt to run either redhat-config-printer or redhat-config-soundcard
results in python errors:

------------------------------ CUT HERE -----------------------------
[root@xyclone etc]# redhat-config-soundcard
Traceback (most recent call last):
  File "/usr/share/redhat-config-soundcard/redhat-config-soundcard.py", line 31,
in ?
    from rhpl.translate import _, N_
  File "/usr/lib/python2.2/site-packages/rhpl/translate.py", line 197, in ?
    cat = i18n()
  File "/usr/lib/python2.2/site-packages/rhpl/translate.py", line 75, in __init__
    self.setDomain(domain)
  File "/usr/lib/python2.2/site-packages/rhpl/translate.py", line 134, in setDomain
    self.iconv = iconv.open(self.codeset, encoding)
ValueError: (22, 'Invalid argument')
------------------------------ CUT HERE -----------------------------
Current setting of LANG environment variable is "en_US.UTF-8".

This system was updated from 7.2 to 8.0, it is not a fresh install.

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


How reproducible:
Always

Steps to Reproduce:
1. Boot up the system into GUI mode
2. Log in as root
3. run "redhat-config-printer" or "redhat-config-soundcard"
    

Actual Results:  Python errors as described above

Expected Results:  I would imagine the GUI or command-line config utility would
run.  As it stands, I've had to run CUPS to configure my printer and I can't
configure my soundcard.

Additional info:

To be honest, don't you think using python for this sort of thing is a bit
silly?  Python is undoubtedly the most cryptic language I have ever seen, and I
worked on LISP systems for 10 years.
Comment 1 Jeremy Katz 2003-01-06 11:21:32 EST

*** This bug has been marked as a duplicate of 76104 ***
Comment 2 Red Hat Bugzilla 2006-02-21 13:50:53 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.