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:
rfm 2007-11-26 09:14:52 +00:00
parent eed3d2f1e2
commit 231d4151a7
2 changed files with 6 additions and 6 deletions

View file

@ -2391,11 +2391,6 @@ static NSString *endMarker = @"At end of incremental parse";
*/
#define HANDLER ((GSSAXHandler*)(((xmlParserCtxtPtr)ctx)->_private))
#ifdef GNUSTEP
static NSString *applePList
= @"file://localhost/System/Library/DTDs/PropertyList.dtd";
#endif
static xmlParserInputPtr
loadEntityFunction(void *ctx,
const unsigned char *eid, const unsigned char *url)
@ -2440,7 +2435,7 @@ loadEntityFunction(void *ctx,
range: NSMakeRange(0, [local length])];
#ifdef GNUSTEP
if ([location isEqual: applePList] == YES)
if ([location rangeOfString: @"/DTDs/PropertyList"].length > 0)
{
file = [location substringFromIndex: 6];
if ([[NSFileManager defaultManager] fileExistsAtPath: file] == NO)