aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-08-20 20:58:24 +0800
committerDaniel Veillard <veillard@redhat.com>2012-08-20 20:58:24 +0800
commitff7227f2c148e77526a5e5200a59e6d2f283e1ea (patch)
treec9c76ed0abc15b5ed7bdffea91d1dc0dfafb1cdb
parentdce1c8baaeaa4f23874c59da91d9ecc0e31a787c (diff)
downloadandroid_external_libxml2-ff7227f2c148e77526a5e5200a59e6d2f283e1ea.tar.gz
android_external_libxml2-ff7227f2c148e77526a5e5200a59e6d2f283e1ea.tar.bz2
android_external_libxml2-ff7227f2c148e77526a5e5200a59e6d2f283e1ea.zip
Patch for portability of latin characters in C files
Coming from LibreOffice repository: http://cgit.freedesktop.org/libreoffice/core/plain/libxml2/libxml2-latin.patch
-rw-r--r--runtest.c2
-rw-r--r--testapi.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/runtest.c b/runtest.c
index 49538896..c6517a39 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2724,7 +2724,7 @@ static const char *urip_testURLs[] = {
"file:///path/to/a%20b.html",
"/path/to/a b.html",
"/path/to/a%20b.html",
- "urip://example.com/résumé.html",
+ "urip://example.com/r" "\xe9" "sum" "\xe9" ".html",
"urip://example.com/test?a=1&b=2%263&c=4#foo",
NULL
};
diff --git a/testapi.c b/testapi.c
index 8bc6483e..ba68e2e5 100644
--- a/testapi.c
+++ b/testapi.c
@@ -287,7 +287,7 @@ static void des_long(int no ATTRIBUTE_UNUSED, long val ATTRIBUTE_UNUSED, int nr
static xmlChar gen_xmlChar(int no, int nr ATTRIBUTE_UNUSED) {
if (no == 0) return('a');
if (no == 1) return(' ');
- if (no == 2) return((xmlChar) 'ø');
+ if (no == 2) return((xmlChar) '\xf8');
return(0);
}
@@ -395,7 +395,7 @@ static void des_debug_FILE_ptr(int no ATTRIBUTE_UNUSED, FILE *val, int nr ATTRIB
static xmlChar *gen_const_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) {
if (no == 0) return((xmlChar *) "foo");
if (no == 1) return((xmlChar *) "<foo/>");
- if (no == 2) return((xmlChar *) "nøne");
+ if (no == 2) return((xmlChar *) "n" "\xf8" "ne");
if (no == 3) return((xmlChar *) " 2ab ");
return(NULL);
}