mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
Make test for apple property lists more tolerant.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eed3d2f1e2
commit
231d4151a7
2 changed files with 6 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-26 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/Additions/GSXML.m: Make check for apple property lists
|
||||||
|
more tolerant.
|
||||||
|
|
||||||
2007-11-25 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-11-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Headers/Foundation/NSThread.h: Add new methods from MacOS 10.5
|
* Headers/Foundation/NSThread.h: Add new methods from MacOS 10.5
|
||||||
|
|
|
@ -2391,11 +2391,6 @@ static NSString *endMarker = @"At end of incremental parse";
|
||||||
*/
|
*/
|
||||||
#define HANDLER ((GSSAXHandler*)(((xmlParserCtxtPtr)ctx)->_private))
|
#define HANDLER ((GSSAXHandler*)(((xmlParserCtxtPtr)ctx)->_private))
|
||||||
|
|
||||||
#ifdef GNUSTEP
|
|
||||||
static NSString *applePList
|
|
||||||
= @"file://localhost/System/Library/DTDs/PropertyList.dtd";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static xmlParserInputPtr
|
static xmlParserInputPtr
|
||||||
loadEntityFunction(void *ctx,
|
loadEntityFunction(void *ctx,
|
||||||
const unsigned char *eid, const unsigned char *url)
|
const unsigned char *eid, const unsigned char *url)
|
||||||
|
@ -2440,7 +2435,7 @@ loadEntityFunction(void *ctx,
|
||||||
range: NSMakeRange(0, [local length])];
|
range: NSMakeRange(0, [local length])];
|
||||||
|
|
||||||
#ifdef GNUSTEP
|
#ifdef GNUSTEP
|
||||||
if ([location isEqual: applePList] == YES)
|
if ([location rangeOfString: @"/DTDs/PropertyList"].length > 0)
|
||||||
{
|
{
|
||||||
file = [location substringFromIndex: 6];
|
file = [location substringFromIndex: 6];
|
||||||
if ([[NSFileManager defaultManager] fileExistsAtPath: file] == NO)
|
if ([[NSFileManager defaultManager] fileExistsAtPath: file] == NO)
|
||||||
|
|
Loading…
Reference in a new issue