Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172955

Summary: glsa-200703-26.xml contains invalid chars
Product: Gentoo Security Reporter: Christian Becke <christianbecke>
Component: GLSA ErrorsAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 162493    
Bug Blocks:    

Description Christian Becke 2007-04-01 01:51:11 UTC
Hi,

glsa-200703-26.xml contains UTF-8 characters, which crashes glsa-check:

Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 148, in ?
    myglsa = Glsa(x, glsaconfig)
  File "/usr/lib/gentoolkit/pym/glsa.py", line 414, in __init__
    self.read()
  File "/usr/lib/gentoolkit/pym/glsa.py", line 432, in read
    self.parse(urllib.urlopen(myurl))
  File "/usr/lib/gentoolkit/pym/glsa.py", line 470, in parse
    self.description = getText(myroot.getElementsByTagName("description")[0], format="xml")
  File "/usr/lib/gentoolkit/pym/glsa.py", line 233, in getText
    return str(rValue)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128)

Removing the char (é in a name in description) fixed it for me.

app-portage/gentoolkit-0.2.3
sys-apps/portage-2.1.2.2
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-04-01 07:32:08 UTC
Thx for the report. This is fixed in CVS.

I simply substituted é with e, Falco feel free to make a better fix or close this bug.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-04-01 07:57:59 UTC
*** Bug 172973 has been marked as a duplicate of this bug. ***
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-04-04 06:37:19 UTC
Noone has complained about the fix so I'll just close this one.