URL:
  <http://savannah.gnu.org/bugs/?29955>

                 Summary: Parsing of XML Plists is broken since gnustep-base
1.18
                 Project: GNUstep
            Submitted by: mwerle
            Submitted on: Mon May 24 23:25:19 2010
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

NSPropertyList.m

In changelist #28263, attempting to parse the plist using libxml2 was removed
and only the custom parser left behind.

The custom parser appears to have a major bug, verified in 1.19.3, 1.20, and
1.21:

When the parser encounters XML entities (eg, &amp;, &quot;, etc), it
correctly parses them, but also strips surrounding whitespace.

eg:
input:       <string>A &amp; B</string>
-> expect:   "A & B"
-> got:      "A&B"

Adding in the libxml2 code from 1.18 into later versions fixes this issue, as
expected.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon May 24 23:25:19 2010  Name: proplist.patch  Size: 7kB   By: mwerle
plist-parser-test.m provided by Jens Ayton.
<http://savannah.gnu.org/bugs/download.php?file_id=20610>
-------------------------------------------------------
Date: Mon May 24 23:25:19 2010  Name: plist-parser-test.m  Size: 12kB   By:
mwerle
plist-parser-test.m provided by Jens Ayton.
<http://savannah.gnu.org/bugs/download.php?file_id=20611>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29955>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to