Tweak for serializing 'xml' property lists

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29069 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-11-27 08:44:43 +00:00
parent e0c9ae4e2d
commit b92879f11d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-11-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: When serializing 'xml' style property lists
call -description to ensure that dictionary keys are strings since no
other option is permitted in the dtd.
2009-11-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSNotificationQueue.m:

View file

@ -2211,7 +2211,7 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
{
[dest appendBytes: iSizeString length: strlen(iSizeString)];
[dest appendBytes: "<key>" length: 5];
XString(keys[i], dest);
XString([keys[i] description], dest);
[dest appendBytes: "</key>\n" length: 7];
[dest appendBytes: iSizeString length: strlen(iSizeString)];
OAppend(plists[i], loc, level, step, x, dest);