Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128392 - bugs.gentoo.org outputs invalid xml for comments with intl chars
Summary: bugs.gentoo.org outputs invalid xml for comments with intl chars
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bugzilla Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-01 08:29 UTC by Thomas Cort (RETIRED)
Modified: 2011-10-30 23:16 UTC (History)
2 users (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.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2006-07-16 14:23:47 UTC
I've also run into this problem while looking at certain bugs with my pybugz script. If you look at bug 122500:

http://bugs.gentoo.org/show_bug.cgi?id=122500&ctype=xml

and try to parse it in elementtree using:

from elementtree import ElementTree
from urllib2 import urlopen
ElementTree.parse(urlopen("http://bugs.gentoo.org/show_bug.cgi?id=122500&ctype=xml"))

You'll get an error on line 2108, which is where some accented characters are.

The solution to this is to change the bugzilla XML template to include the character encoding in the <?xml?> declaration in:

./template/en/default/bug/show.xml.tmpl

from:
<?xml version="1.0" standalone="yes"?>
to:
<?xml version="1.0" encoding="ISO-8859-1" ?>


Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-01-06 08:21:32 UTC
Moving open bugzilla bugs to the new bugzilla group (because I'm about to stab lots of these bugs).
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-01-06 09:28:56 UTC
fixed with new version (your validators all pass it)