Bug 1468985 - sealert tracebacks when lithuanian locales are used
sealert tracebacks when lithuanian locales are used
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: setroubleshoot-plugins (Show other bugs)
All Linux
medium Severity low
: rc
: ---
Assigned To: Petr Lautrbach
Milos Malik
Depends On: 1376770
  Show dependency treegraph
Reported: 2017-07-10 03:42 EDT by Vit Mojzis
Modified: 2017-12-05 05:10 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1376770
Last Closed:
Type: Bug
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 Vit Mojzis 2017-07-10 03:42:41 EDT
+++ This bug was initially created as a clone of Bug #1376770 +++

Description of problem:
* the same happens for LANG=lithuanian, LANG=lt_LT, LANG=lt_LT.iso885913 and LANG=lt_LT.utf8

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

How reproducible:
* always

Actual results:
:: [  BEGIN   ] :: Running 'LANG=lt_LT sealert -a /var/log/audit/audit.log 2>&1 | tee /tmp/tmp.xmThY35NFx | grep -i -e traceback -e exception '
Traceback (most recent call last):
:: [   FAIL   ] :: Command 'LANG=lt_LT sealert -a /var/log/audit/audit.log 2>&1 | tee /tmp/tmp.xmThY35NFx | grep -i -e traceback -e exception ' (Expected 1, got 0)
:: [  BEGIN   ] :: Running 'cat /tmp/tmp.xmThY35NFx'
Traceback (most recent call last):
  File "/usr/bin/sealert", line 49, in <module>
    from setroubleshoot.errcode import *
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/errcode.py", line 20, in <module>
    translation=gettext.translation('setroubleshoot-plugins', fallback=True)
  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__
  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
:: [   PASS   ] :: Command 'cat /tmp/tmp.xmThY35NFx' (Expected 0, got 0)

Expected results:
* no tracebacks
Comment 2 Vit Mojzis 2017-07-10 03:59:56 EDT
Setroubleshoot-plugins contains a typo in lt.po translations. For more information please see RHBZ#1364114.

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