Bug 210720

Summary: translations with charset=CHARSET crash anaconda
Product: [Fedora] Fedora Reporter: Bill Nottingham <notting>
Component: pykickstartAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-16 11:22:51 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Bill Nottingham 2006-10-13 17:13:36 EDT
Description of problem:

[notting@nostromo: ~/prog/anaconda]$ LANG=fa_IR ./anaconda --test --method
Traceback (most recent call last):
  File "./anaconda", line 588, in ?
    import signal, traceback, string, isys, iutil, time
  File "isys/isys.py", line 26, in ?
    import iutil
  File "/home/notting/prog/anaconda/iutil.py", line 21, in ?
    from flags import flags
  File "/home/notting/prog/anaconda/flags.py", line 16, in ?
    from constants import *
  File "/home/notting/prog/anaconda/constants.py", line 51, in ?
    from pykickstart.constants import *
  File "/usr/lib/python2.4/site-packages/pykickstart/__init__.py", line 3, in ?
    import parser
  File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 29, in ?
  File "/usr/lib/python2.4/site-packages/rhpl/translate.py", line 220, in textdomain
  File "/usr/lib/python2.4/site-packages/rhpl/translate.py", line 106, in setDomain
  File "/usr/lib/python2.4/site-packages/rhpl/translate.py", line 140, in
    catalog = gettext.GNUTranslations(mofile)
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
  File "/usr/lib/python2.4/gettext.py", line 324, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET

This is due to the fa pykickstart translation having 'charset=CHARSET' in it.
Various other pykickstart translations are similar.

No, I don't know why this doesn't crash in non-test mode.

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


How reproducible:

Every time.
Comment 1 Bill Nottingham 2006-10-13 17:23:06 EDT
Actually, this crashes in non-test mode if you pick 'Kannada', which has
charset=CHARSET translations for both rhpl and pykickstart.
Comment 2 Bill Nottingham 2006-10-13 18:11:26 EDT
OK, new rhpl, rhpxl, pykickstart, system-config-date, and system-config-keyboard
built. Wheeee!
Comment 3 Chris Lumens 2006-10-16 11:22:51 EDT
How aggravating.  I assume these have been moved into the FC6 tree?
Comment 4 Bill Nottingham 2006-10-16 11:34:03 EDT