mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Minor fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15743 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
460cd690de
commit
17ac680236
5 changed files with 29 additions and 3 deletions
|
@ -1978,7 +1978,10 @@ static NSString *endMarker = @"At end of incremental parse";
|
|||
int newVal = (yesno == YES) ? 1 : 0;
|
||||
|
||||
xmlGetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&oldVal);
|
||||
xmlSetFeature((xmlParserCtxtPtr)lib, "substitute entities", (void*)&newVal);
|
||||
if (xmlSetFeature((xmlParserCtxtPtr)lib, "substitute entities",
|
||||
(void*)&newVal) < 0)
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Unable to set substituteEntities"];
|
||||
return (oldVal == 1) ? YES : NO;
|
||||
}
|
||||
|
||||
|
|
|
@ -1571,7 +1571,7 @@ GSFromUnicode(unsigned char **dst, unsigned int *size, const unichar *src,
|
|||
else
|
||||
{
|
||||
ptr[dpos++] = (u >> 12) | 0xe0;
|
||||
ptr[dpos++] = (u >> 6) | 0x80;
|
||||
ptr[dpos++] = ((u >> 6) & 0x3f) | 0x80;
|
||||
ptr[dpos++] = (u & 0x3f) | 0x80;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue