Description of problem: Pirut crashes on every attempt to list the packages (not groups) on Fedora's Bengali (LANG=bn_IN.UTF-8) desktop. Version-Release number of selected component (if applicable): pirut-1.3.10-1 How reproducible: Launch Pirut with LANG=bn_IN.UTF-8, and chose the 'List' tab or try to view the packages within each group. Steps to Reproduce: 1. Launch Pirut as: # LANG=bn_IN.UTF-8 pirut 2. Click the 'List' tab. Actual results: Pirut crashes. Traceback given below. Expected results: Available and installed packages should be listed as they are with LANG=en_US.UTF-8. Additional info: Here is the backtrace obtained after the crash: http://rishi.fedorapeople.org/pirut.trace There is no such problem with versions 1.3.9 and below. Here is a 'diff -urNp' between versions 1.3.9 and 1.3.10: http://rishi.fedorapeople.org/pirut.diff
Yes, I can confirm this as happening with regularity. Obtained trace is similar to http://rishi.fedorapeople.org/pirut.trace
Tested with the French locale, Pirut works as expected.
Crashes with similar trace for the Bengali (bn_BD) locale. Does that help in going along the debugging of this issue ?
Tested with the following locales: bn=failed bn_IN = failed hi= failed gu=failed el=failed en_US=success Doesnt seem to be a translation bug.
It's a bug in python's gettext module. With specspo installed, do LANG=bn_IN.UTF-8 python -c 'import gettext; print gettext.dgettext("redhat-dist", "foo")' Previously reported upstream at https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1448060&group_id=5470 but no real resolution from it
Here is what I get. [rishi@ginger noarch]$ LANG=bn_IN.UTF-8 python -c 'import gettext; > print gettext.dgettext("redhat-dist", "foo")' Traceback (most recent call last): File "<string>", line 2, in <module> File "/usr/lib/python2.5/gettext.py", line 530, in dgettext codeset=_localecodesets.get(domain)) File "/usr/lib/python2.5/gettext.py", line 478, in translation t = _translations.setdefault(key, class_(open(mofile, 'rb'))) File "/usr/lib/python2.5/gettext.py", line 180, in __init__ self._parse(fp) File "/usr/lib/python2.5/gettext.py", line 313, in _parse v = v.split(';') AttributeError: 'list' object has no attribute 'split' [rishi@ginger noarch]$
1. Can we have the patch from https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1448060&group_id=5470 in Fedora? 2. pirut-1.3.9 does not have this issue with the same Python package. Can we revert whatever changed since 1.3.9 in order to have a temporary fix?
(In reply to comment #7) > 1. Can we have the patch from > https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1448060&group_id=5470 > in Fedora? The comments imply that the patch is wrong, so taking it directly is likely a bad idea. > 2. pirut-1.3.9 does not have this issue with the same Python package. Can we > revert whatever changed since 1.3.9 in order to have a temporary fix? Doing so breaks a number of other translation cases, so really isn't ideal either. We really just need to fix the bug in python here; the patch is probably a good start for when James gets back from vacation or I'll end up taking a look if it's still lingering around test3.
*** Bug 254103 has been marked as a duplicate of this bug. ***
New URL for this upstream is http://bugs.python.org/issue1448060 (also, http://bugs.python.org/issue1475523 is relevant)
And applied something of a fix for our python package. I don't see how it can break after reading the mo file specification for a bit and the gettext code
*** Bug 325711 has been marked as a duplicate of this bug. ***
*** Bug 359741 has been marked as a duplicate of this bug. ***
*** Bug 355091 has been marked as a duplicate of this bug. ***
This bug is still present in Fedora 7, and also for lang=it. Nicola
*** Bug 365061 has been marked as a duplicate of this bug. ***
*** Bug 367651 has been marked as a duplicate of this bug. ***
After updating python (# yum update python*) pirut-1.3.25-2 seems to work fine for LANG=bn_IN.UTF-8.
After general update of november 6 (Kernel 2.6.23.1-21.fc7) for LANG=it_IT yum info <something> => crash
LANG=de_DE.UTF-8 also causes 'yum info' to crash
*** Bug 368031 has been marked as a duplicate of this bug. ***
*** Bug 370861 has been marked as a duplicate of this bug. ***
thanks. for F7 python-*2.5-15.fc7 is ok http://koji.fedoraproject.org/koji/buildinfo?buildID=23519 # rpm -qa python* | grep 2.5-15 python-devel-2.5-15.fc7 python-libs-2.5-15.fc7 python-2.5-15.fc7 not yet in f7 updates-testing :(
Yeh, I know, I've requested it ... but it hasn't turned up yet (I assume Fed-8 is slowing the process down). Anyway feel free to visit: https://admin.fedoraproject.org/updates/F7/pending/python-2.5-15.fc7 ...and give it some karma.
python-2.5-15.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update python'
*** Bug 374401 has been marked as a duplicate of this bug. ***
*** Bug 377311 has been marked as a duplicate of this bug. ***
OK ! for me (LANG it_IT.UTF-8) it works Thanks Marco
*** Bug 381971 has been marked as a duplicate of this bug. ***
*** Bug 384131 has been marked as a duplicate of this bug. ***
*** Bug 387111 has been marked as a duplicate of this bug. ***
*** Bug 388201 has been marked as a duplicate of this bug. ***
*** Bug 388341 has been marked as a duplicate of this bug. ***
*** Bug 389271 has been marked as a duplicate of this bug. ***
*** Bug 389531 has been marked as a duplicate of this bug. ***
*** Bug 386651 has been marked as a duplicate of this bug. ***
*** Bug 390861 has been marked as a duplicate of this bug. ***
*** Bug 391101 has been marked as a duplicate of this bug. ***
*** Bug 392481 has been marked as a duplicate of this bug. ***
*** Bug 392841 has been marked as a duplicate of this bug. ***
*** Bug 394711 has been marked as a duplicate of this bug. ***
*** Bug 394051 has been marked as a duplicate of this bug. ***
*** Bug 394841 has been marked as a duplicate of this bug. ***
python-2.5-15.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.
Works for bn_IN and bn. Checked for other Indic locales too and works_for_me. Thanks :)
german language also works very well!