fix error writing negative numbers to property list

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23896 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-17 09:39:36 +00:00
parent 6f2073da6e
commit 8ec6e389ee
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-10-17 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m:
Fix error writing negative numbers to property list.
2006-10-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFFCallInvocation.m:

View file

@ -1635,7 +1635,8 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
else if (x == NSPropertyListGNUstepFormat)
{
[dest appendBytes: "<*I" length: 3];
PString([obj stringValue], dest);
[dest appendData:
[[obj stringValue] dataUsingEncoding: NSASCIIStringEncoding]];
[dest appendBytes: ">" length: 1];
}
else
@ -1654,7 +1655,8 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
else if (x == NSPropertyListGNUstepFormat)
{
[dest appendBytes: "<*R" length: 3];
PString([obj stringValue], dest);
[dest appendData:
[[obj stringValue] dataUsingEncoding: NSASCIIStringEncoding]];
[dest appendBytes: ">" length: 1];
}
else