[xml] Closing bug #134477



Hi Daniel:

Here comes a trivial patch to close bug #134477. Maybe someone was
making some tests and forgot this issue... :)
Ah, here also comes a patch to testcase feeded within bugzilla. It
wasn't correct.

regards

--

[]'s
Lucas Brasilino
brasilino recife pe gov br
http://www.recife.pe.gov.br
Emprel -        Empresa Municipal de Informatica (pt_BR)
                Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078
Index: entities.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/entities.c,v
retrieving revision 1.77
diff -u -r1.77 entities.c
--- entities.c  9 Dec 2003 22:51:37 -0000       1.77
+++ entities.c  18 Mar 2004 21:16:06 -0000
@@ -625,7 +625,6 @@
            *out++ = 'm';
            *out++ = 'p';
            *out++ = ';';
-#if 0
        } else if (*cur == '"') {
            *out++ = '&';
            *out++ = 'q';
@@ -633,7 +632,6 @@
            *out++ = 'o';
            *out++ = 't';
            *out++ = ';';
-#endif
        } else if (*cur == '\r') {
            *out++ = '&';
            *out++ = '#';
--- libxml2-bug134477.c~        2004-03-17 12:29:14.000000000 -0300
+++ libxml2-bug134477.c 2004-03-18 17:58:38.000000000 -0300
@@ -8,7 +8,7 @@
        const char * expected = "foo " bar";
 
         char *encoded = xmlEncodeSpecialChars (NULL, data);
-        printf( "expected: %s\ngot:      %s\n", expected, data);
+        printf( "expected: %s\ngot:      %s\n", expected, encoded);
         xmlFree (encoded);
 
        return 0;


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