mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
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:
parent
ded19f3ec1
commit
26407180ac
2 changed files with 9 additions and 2 deletions
|
@ -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>
|
2006-10-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSFFCallInvocation.m:
|
* Source/GSFFCallInvocation.m:
|
||||||
|
|
|
@ -1635,7 +1635,8 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
||||||
else if (x == NSPropertyListGNUstepFormat)
|
else if (x == NSPropertyListGNUstepFormat)
|
||||||
{
|
{
|
||||||
[dest appendBytes: "<*I" length: 3];
|
[dest appendBytes: "<*I" length: 3];
|
||||||
PString([obj stringValue], dest);
|
[dest appendData:
|
||||||
|
[[obj stringValue] dataUsingEncoding: NSASCIIStringEncoding]];
|
||||||
[dest appendBytes: ">" length: 1];
|
[dest appendBytes: ">" length: 1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1654,7 +1655,8 @@ OAppend(id obj, NSDictionary *loc, unsigned lev, unsigned step,
|
||||||
else if (x == NSPropertyListGNUstepFormat)
|
else if (x == NSPropertyListGNUstepFormat)
|
||||||
{
|
{
|
||||||
[dest appendBytes: "<*R" length: 3];
|
[dest appendBytes: "<*R" length: 3];
|
||||||
PString([obj stringValue], dest);
|
[dest appendData:
|
||||||
|
[[obj stringValue] dataUsingEncoding: NSASCIIStringEncoding]];
|
||||||
[dest appendBytes: ">" length: 1];
|
[dest appendBytes: ">" length: 1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue