Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172955 - glsa-200703-26.xml contains invalid chars
Summary: glsa-200703-26.xml contains invalid chars
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: GLSA Errors (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
: 172973 (view as bug list)
Depends on: 162493
Blocks:
  Show dependency tree
 
Reported: 2007-04-01 01:51 UTC by Christian Becke
Modified: 2007-10-01 09:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.