Bug 252136
Summary: | Can not list packages on Bengali (LANG=bn_IN.UTF-8) desktop. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Debarshi Ray <debarshir> |
Component: | python | Assignee: | James Antill <james.antill> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | aszalosl, bernx, elmar.boehler, james.antill, juergenw_, katzj, leo.d, linux, massimo.carboni, matteo.guindani, mhzuchini, mtoncar, munich_bb, necrobutcher, nsoranzo, peterhoffm, p.patruno, runab, sankarshan.mukhopadhyay, sascha, schober.karl-heinz, shrek-m, thomas.garbrecht, tobias, tomboy0815, wehrle.thomas, xjakub |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugs.python.org/issue1475523 | ||
Whiteboard: | |||
Fixed In Version: | 2.5-15.fc7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2007-11-22 03:30:05 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 235703 |
Description
Debarshi Ray
2007-08-14 06:14:27 UTC
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! |