https://bugzilla.redhat.com/show_bug.cgi?id=1057681
Bug ID: 1057681
Summary: [abrt] system-config-language:
gettext.py:93:c2py:ValueError: plural forms expression
could be dangerous
Product: Fedora
Version: 20
Component: system-config-language
Assignee: pnemade(a)redhat.com
Reporter: mindaugasceliesius(a)gmail.com
QA Contact: extras-qa(a)fedoraproject.org
CC: i18n-bugs(a)lists.fedoraproject.org, nav007(a)gmail.com,
pnemade(a)redhat.com, psatpute(a)redhat.com
Description of problem:
System-config-language do not launch, it crashed without warning.
Version-Release number of selected component:
system-config-language-1.4.0-7.fc20
Additional info:
reporter: libreport-2.1.11
cmdline: /usr/bin/python
/usr/share/system-config-language/system-config-language.py
dso_list: python-libs-2.7.5-9.fc20.x86_64
executable: /usr/share/system-config-language/system-config-language.py
kernel: 3.12.8-300.fc20.x86_64
runlevel: N 5
type: Python
uid: 0
Truncated backtrace:
gettext.py:93:c2py:ValueError: plural forms expression could be dangerous
Traceback (most recent call last):
File "/usr/share/system-config-language/system-config-language.py", line 68,
in <module>
print _("Starting graphical mode failed. Starting text mode instead.")
File "/usr/share/system-config-language/system-config-language.py", line 29,
in <lambda>
_ = lambda x: gettext.ldgettext("system-config-language", x)
File "/usr/lib64/python2.7/gettext.py", line 540, in ldgettext
codeset=_localecodesets.get(domain))
File "/usr/lib64/python2.7/gettext.py", line 480, in translation
t = _translations.setdefault(key, class_(fp))
File "/usr/lib64/python2.7/gettext.py", line 180, in __init__
self._parse(fp)
File "/usr/lib64/python2.7/gettext.py", line 317, in _parse
self.plural = c2py(plural)
File "/usr/lib64/python2.7/gettext.py", line 93, in c2py
raise ValueError, 'plural forms expression could be dangerous'
ValueError: plural forms expression could be dangerous
Local variables in innermost frame:
StringIO: <built-in function StringIO>
danger: [(1, 'or', (1, 49), (1, 51), '(n%10==1 && n%100!=11 ? 0 :
n%10>=2 &&
(n%100<10 or n%100>=20) ? 1 : 2)')]
tokens: <generator object generate_tokens at 0x31fd690>
token: <module 'token' from '/usr/lib64/python2.7/token.pyc'>
tokenize: <module 'tokenize' from
'/usr/lib64/python2.7/tokenize.pyc'>
x: (0, '', (2, 0), (2, 0), '')
plural: '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 or
n%100>=20) ? 1 :
2)'
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=fbvyiZ1f0U&a=cc_unsubscribe