qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs/libqhtml xmlparse.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs/libqhtml xmlparse.c
Date: Wed, 19 Aug 2015 14:26:35 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        15/08/19 14:26:35

Modified files:
        libqhtml       : xmlparse.c 

Log message:
        libqhtml: parse hex html entities

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/libqhtml/xmlparse.c?cvsroot=qemacs&r1=1.26&r2=1.27

Patches:
Index: xmlparse.c
===================================================================
RCS file: /sources/qemacs/qemacs/libqhtml/xmlparse.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- xmlparse.c  5 Feb 2014 00:56:50 -0000       1.26
+++ xmlparse.c  19 Aug 2015 14:26:34 -0000      1.27
@@ -64,6 +64,9 @@
     int code;
 
     if (str[0] == '#') {
+        if (str[1] == 'x')
+            code = strtol(str + 2, NULL, 16);
+        else
         code = strtol(str + 1, NULL, 10);
         if (code <= 0)
             return -1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]