+2007-03-18 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * libxmlSAXDriver.m: rewrote decoding of hexadecimal entities as
+ this used functionality not present in libFoundation (v4.7.26)
+
2007-03-15 Marcus Mueller <znek@mulle-kybernetik.com>
* libxmlSAXDriver.m: properly decode #%i; values in attributes -
c = (unichar)charAt(s, @selector(characterAtIndex:), i + 2);
/* hex value? */
if (c == 'x' || c == 'X') {
- unsigned value;
+ const char *shex;
+ unsigned value;
vr = NSMakeRange(i + 3, r.location - i - 3);
- value = [[NSScanner scannerWithString:[s substringWithRange:vr]]
- scanHexInt:&value];
+ shex = [[s substringWithRange:vr]
+ cStringUsingEncoding:NSASCIIStringEncoding];
+ sscanf(shex, "%x", &value);
c = (unichar)value;
}
else {