mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Allow for quoted numeric/date values in property list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32fedc1510
commit
d4a9748337
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-03-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSPropertyList.m: Allow for quoting of numeric/date values
|
||||
in property lists. Fixes bug #16068
|
||||
|
||||
2006-03-11 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepBase/GSXML.h: clarify documentation of
|
||||
|
|
|
@ -711,6 +711,16 @@ static id parsePlItem(pldata* pld)
|
|||
unsigned char type = *ptr++;
|
||||
|
||||
len--;
|
||||
// Allow for quoted values.
|
||||
if (ptr[0] == '\'' && len > 1)
|
||||
{
|
||||
len--;
|
||||
ptr++;
|
||||
if (ptr[len - 1] == '\'')
|
||||
{
|
||||
len--;
|
||||
}
|
||||
}
|
||||
if (type == 'I')
|
||||
{
|
||||
char buf[len+1];
|
||||
|
|
Loading…
Reference in a new issue