mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
92e3e46e54
commit
9b108fb88b
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>
|
||||
|
||||
* 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))
|
||||
|
||||
#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)
|
||||
|
|
Loading…
Reference in a new issue