summaryrefslogtreecommitdiffstats
path: root/third_party/libxml
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:55:31 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-19 17:55:31 +0000
commit8d5a7d9b4bf5e42ad889e7ea36feff67f4d78a00 (patch)
treee4331294db06c147f607583fcc21a6aa5a43ba3e /third_party/libxml
parent2d88e7d8b4c382e0ef178c52a87450c226150ef2 (diff)
downloadchromium_src-8d5a7d9b4bf5e42ad889e7ea36feff67f4d78a00.zip
chromium_src-8d5a7d9b4bf5e42ad889e7ea36feff67f4d78a00.tar.gz
chromium_src-8d5a7d9b4bf5e42ad889e7ea36feff67f4d78a00.tar.bz2
Enforce all the source files to be encoded in UTF-8.
Many files used random encoding. All of them were in comments or unit test files that were not compiled. In any case, not using unicode everywhere complexify the tools so enforcing it makes presubmit checks much simpler. R=joi@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10797029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libxml')
-rw-r--r--third_party/libxml/README.chromium1
-rw-r--r--third_party/libxml/src/entities.c2
-rw-r--r--third_party/libxml/src/runtest.c2
-rw-r--r--third_party/libxml/src/testapi.c4
4 files changed, 5 insertions, 4 deletions
diff --git a/third_party/libxml/README.chromium b/third_party/libxml/README.chromium
index 0292550..4dec550 100644
--- a/third_party/libxml/README.chromium
+++ b/third_party/libxml/README.chromium
@@ -12,6 +12,7 @@ See the files in that directory for discussion of their effects.
Current version: 2.7.7.
Modifications:
+- Converted to utf-8 with: vim +"argdo write ++enc=utf-8" *.c
- Import XPath fix http://git.gnome.org/browse/libxml2/commit/?id=91d19754d46acd4a639a8b9e31f50f31c78f8c9c
- Import follow-on for above commit: http://git.gnome.org/browse/libxml2/commit/?id=ea90b894146030c214a7df6d8375310174f134b9
- Import additional XPath fix http://git.gnome.org/browse/libxml2/commit/?id=df83c17e5a2646bd923f75e5e507bc80d73c9722
diff --git a/third_party/libxml/src/entities.c b/third_party/libxml/src/entities.c
index 6aef49f..2aeef04 100644
--- a/third_party/libxml/src/entities.c
+++ b/third_party/libxml/src/entities.c
@@ -609,7 +609,7 @@ xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) {
} else if (*cur >= 0x80) {
if (((doc != NULL) && (doc->encoding != NULL)) || (html)) {
/*
- * Bjørn Reese <br@sseusa.com> provided the patch
+ * Bjørn Reese <br@sseusa.com> provided the patch
xmlChar xc;
xc = (*cur & 0x3F) << 6;
if (cur[1] != 0) {
diff --git a/third_party/libxml/src/runtest.c b/third_party/libxml/src/runtest.c
index fa925c1..bc28795 100644
--- a/third_party/libxml/src/runtest.c
+++ b/third_party/libxml/src/runtest.c
@@ -2728,7 +2728,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ésumé.html",
"urip://example.com/test?a=1&b=2%263&c=4#foo",
NULL
};
diff --git a/third_party/libxml/src/testapi.c b/third_party/libxml/src/testapi.c
index da6ce1b..d046cbc 100644
--- a/third_party/libxml/src/testapi.c
+++ b/third_party/libxml/src/testapi.c
@@ -291,7 +291,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) 'ø');
return(0);
}
@@ -399,7 +399,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øne");
if (no == 3) return((xmlChar *) " 2ab ");
return(NULL);
}