Bug 210720 - translations with charset=CHARSET crash anaconda
translations with charset=CHARSET crash anaconda
Product: Fedora
Classification: Fedora
Component: pykickstart (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chris Lumens
Depends On:
  Show dependency treegraph
Reported: 2006-10-13 17:13 EDT by Bill Nottingham
Modified: 2014-03-16 23:03 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-16 11:22:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
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

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