]> err.no Git - sope/commitdiff
rewrite for libFoundation compat
authorznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 18 Mar 2007 16:45:47 +0000 (16:45 +0000)
committerznek <znek@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Sun, 18 Mar 2007 16:45:47 +0000 (16:45 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1465 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/libxmlSAXDriver/ChangeLog
sope-xml/libxmlSAXDriver/Version
sope-xml/libxmlSAXDriver/libxmlSAXDriver-Info.plist
sope-xml/libxmlSAXDriver/libxmlSAXDriver.m

index 77dead4b4684ab6a303db89d680710dcee82a089..c4566d4cfcdd54c2a0923d3397c38edf1c8a0ce3 100644 (file)
@@ -1,3 +1,8 @@
+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 -
index 270c14ca3f2859758b1a28b8a7e97c7ba6595ccc..60803b074ff0f9ebf7c936c90417cbb3b7a807b8 100644 (file)
@@ -1,3 +1,3 @@
 # version
 
-SUBMINOR_VERSION:=25
+SUBMINOR_VERSION:=26
index 4b2b1c44ac679a62e40dbd9029fb6534231d0aa1..193c0ed155ee526131b322ae83a66d4bbadd56cc 100644 (file)
@@ -21,6 +21,6 @@
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
-       <string>4.7.25</string>
+       <string>4.7.26</string>
 </dict>
 </plist>
index eed749695563d3fe513717aafc6d594cd5cf9697..599a2c057bf9370e50b87373f2f859d62991ed81 100644 (file)
@@ -120,11 +120,13 @@ static inline NSString *xmlCharsToDecodedString(const xmlChar *_s) {
           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 {