From b92879f11d101950e14b790bab60a5b37a068130 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 27 Nov 2009 08:44:43 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ Source/NSPropertyList.m | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fe4aee57f..a621d533d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-27 Richard Frith-Macdonald + + * 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 * Source/NSNotificationQueue.m: diff --git a/Source/NSPropertyList.m b/Source/NSPropertyList.m index 39fc911fc..3664f4a25 100644 --- a/Source/NSPropertyList.m +++ b/Source/NSPropertyList.m @@ -2211,7 +2211,7 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step, { [dest appendBytes: iSizeString length: strlen(iSizeString)]; [dest appendBytes: "" length: 5]; - XString(keys[i], dest); + XString([keys[i] description], dest); [dest appendBytes: "\n" length: 7]; [dest appendBytes: iSizeString length: strlen(iSizeString)]; OAppend(plists[i], loc, level, step, x, dest);