intltool xml parsing broken
- From: Alexander Larsson <alexl redhat com>
- To: "desktop-devel-list gnome org" <desktop-devel-list gnome org>
- Subject: intltool xml parsing broken
- Date: 20 Jan 2004 13:43:24 +0100
I'm having some pretty bad problems with the new XML::Parser version of
intltool.
Its seems that its not really using an XML parser, but instead doing
things like:
# Grab attribute key/value pairs and push onto @origlist array.
#
while ($source =~ s|^[ \t]*([\w:]+)[ \t]*[=][ \t]*["]([^"]*)["]||s)
{
push @origlist, $1;
push @origlist, $2;
This has some issues for me when building shared-mime-info:
a) It removes any attributes using ' as quote
b) It strips out multiple whitespaces inside an attribute value,
breaking the mime file
c) (part of a) really), doesn't handle " quotes inside '-quoted
attributes
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an immortal devious paranormal investigator looking for a cure to the
poison coursing through his veins. She's a mentally unstable punk socialite
with only herself to blame. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]