mostly fixups for ICU

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31742 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-12-16 10:09:43 +00:00
parent c4fdcb6d93
commit 62de5b485f
13 changed files with 16749 additions and 2825 deletions

View file

@ -46,7 +46,7 @@ NSString* const NSXMLParserErrorDomain = @"NSXMLParserErrorDomain";
static NSNull *null = nil;
#if defined(HAVE_LIBXML)
#if 0 && defined(HAVE_LIBXML)
/* We support a strict libxml2 based parser ... but sometimes we need a
* sloppier parser which copes with bad XML generated by Apple's software,
@ -510,7 +510,7 @@ static NSNull *null = nil;
- (NSError*) parserError
{
return nil; // FIXME
return (nil == myHandler) ? nil : myHandler->_lastError;
}
- (void) setDelegate: (id)delegate
@ -875,10 +875,13 @@ static SEL foundIgnorableSel;
- (BOOL) _parseError: (NSString *)message code: (NSInteger)code
{
NSDictionary *info = nil;
message = [NSString stringWithFormat: @"line %d, column %d ... %@",
this->line, this->column, message];
#if EXTRA_DEBUG
NSLog(@"XML parseError: %@", message);
#endif
NSDictionary *info = nil;
[this->error release];
if (message != nil)