Bug 252136

Summary: Can not list packages on Bengali (LANG=bn_IN.UTF-8) desktop.
Product: [Fedora] Fedora Reporter: Debarshi Ray <debarshir>
Component: pythonAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: 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
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

Comment 1 sankarshan 2007-08-14 09:25:16 UTC
Yes, I can confirm this as happening with regularity. Obtained trace is similar
to http://rishi.fedorapeople.org/pirut.trace

Comment 2 sankarshan 2007-08-14 09:29:56 UTC
Tested with the French locale, Pirut works as expected.

Comment 3 sankarshan 2007-08-14 09:35:49 UTC
Crashes with similar trace for the Bengali (bn_BD) locale. Does that help in
going along the debugging of this issue ?

Comment 4 Runa Bhattacharjee 2007-08-14 09:52:09 UTC
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.

Comment 5 Jeremy Katz 2007-08-14 14:58:57 UTC
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

Comment 6 Debarshi Ray 2007-08-22 22:33:34 UTC
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]$ 

Comment 7 Debarshi Ray 2007-08-22 22:35:46 UTC
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?

Comment 8 Jeremy Katz 2007-08-23 00:55:52 UTC
(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.

Comment 9 Jeremy Katz 2007-08-24 13:53:49 UTC
*** Bug 254103 has been marked as a duplicate of this bug. ***

Comment 10 Jeremy Katz 2007-09-10 15:35:08 UTC
New URL for this upstream is http://bugs.python.org/issue1448060 (also,
http://bugs.python.org/issue1475523 is relevant)

Comment 11 Jeremy Katz 2007-09-10 15:43:39 UTC
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

Comment 12 Jeremy Katz 2007-10-10 01:31:11 UTC
*** Bug 325711 has been marked as a duplicate of this bug. ***

Comment 13 Jeremy Katz 2007-10-31 13:38:22 UTC
*** Bug 359741 has been marked as a duplicate of this bug. ***

Comment 14 Jeremy Katz 2007-11-01 17:55:33 UTC
*** Bug 355091 has been marked as a duplicate of this bug. ***

Comment 15 Nicola Soranzo 2007-11-02 16:09:16 UTC
This bug is still present in Fedora 7, and also for lang=it.

Nicola


Comment 16 Sascha Harusta 2007-11-03 10:02:49 UTC
*** Bug 365061 has been marked as a duplicate of this bug. ***

Comment 17 Jeremy Katz 2007-11-06 05:41:49 UTC
*** Bug 367651 has been marked as a duplicate of this bug. ***

Comment 18 Debarshi Ray 2007-11-06 06:41:45 UTC
After updating python (# yum update python*) pirut-1.3.25-2 seems to work fine
for LANG=bn_IN.UTF-8.

Comment 19 marco bernardi 2007-11-06 09:02:45 UTC
After general update of november 6 (Kernel 2.6.23.1-21.fc7) 

for LANG=it_IT 

yum info <something> => crash



Comment 20 Thomas Müller 2007-11-06 11:14:22 UTC
LANG=de_DE.UTF-8 also causes 'yum info' to crash

Comment 21 Jeremy Katz 2007-11-06 14:01:40 UTC
*** Bug 368031 has been marked as a duplicate of this bug. ***

Comment 22 Jeremy Katz 2007-11-09 14:14:59 UTC
*** Bug 370861 has been marked as a duplicate of this bug. ***

Comment 23 shrek-m 2007-11-09 15:11:38 UTC
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 :(

Comment 24 James Antill 2007-11-09 15:48:24 UTC
 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.


Comment 25 Fedora Update System 2007-11-09 23:51:13 UTC
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'

Comment 26 Jeremy Katz 2007-11-12 16:03:02 UTC
*** Bug 374401 has been marked as a duplicate of this bug. ***

Comment 27 Jeremy Katz 2007-11-12 16:30:17 UTC
*** Bug 377311 has been marked as a duplicate of this bug. ***

Comment 28 marco bernardi 2007-11-13 18:56:07 UTC
OK !
for me (LANG it_IT.UTF-8) it works

Thanks

Marco

Comment 29 Jeremy Katz 2007-11-14 15:16:09 UTC
*** Bug 381971 has been marked as a duplicate of this bug. ***

Comment 30 Jeremy Katz 2007-11-16 01:09:25 UTC
*** Bug 384131 has been marked as a duplicate of this bug. ***

Comment 31 Jeremy Katz 2007-11-16 16:19:29 UTC
*** Bug 387111 has been marked as a duplicate of this bug. ***

Comment 32 Jeremy Katz 2007-11-19 16:17:34 UTC
*** Bug 388201 has been marked as a duplicate of this bug. ***

Comment 33 Jeremy Katz 2007-11-19 16:18:52 UTC
*** Bug 388341 has been marked as a duplicate of this bug. ***

Comment 34 Jeremy Katz 2007-11-19 16:20:15 UTC
*** Bug 389271 has been marked as a duplicate of this bug. ***

Comment 35 Jeremy Katz 2007-11-19 16:20:44 UTC
*** Bug 389531 has been marked as a duplicate of this bug. ***

Comment 36 Jeremy Katz 2007-11-19 19:20:56 UTC
*** Bug 386651 has been marked as a duplicate of this bug. ***

Comment 37 Jeremy Katz 2007-11-19 19:21:14 UTC
*** Bug 390861 has been marked as a duplicate of this bug. ***

Comment 38 Jeremy Katz 2007-11-19 22:29:08 UTC
*** Bug 391101 has been marked as a duplicate of this bug. ***

Comment 39 Jeremy Katz 2007-11-20 14:57:43 UTC
*** Bug 392481 has been marked as a duplicate of this bug. ***

Comment 40 Jeremy Katz 2007-11-20 19:49:06 UTC
*** Bug 392841 has been marked as a duplicate of this bug. ***

Comment 41 Jeremy Katz 2007-11-21 18:42:22 UTC
*** Bug 394711 has been marked as a duplicate of this bug. ***

Comment 42 Jeremy Katz 2007-11-21 20:02:23 UTC
*** Bug 394051 has been marked as a duplicate of this bug. ***

Comment 43 James Antill 2007-11-21 20:37:56 UTC
*** Bug 394841 has been marked as a duplicate of this bug. ***

Comment 44 Fedora Update System 2007-11-22 03:29:51 UTC
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.

Comment 45 sankarshan 2007-11-24 04:40:05 UTC
Works for bn_IN and bn. Checked for other Indic locales too and works_for_me.
Thanks :)

Comment 46 peterhoffm 2007-11-24 12:50:38 UTC
german language also works very well!