summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfdrake <fdrake>2005-01-28 05:41:56 +0000
committerfdrake <fdrake>2005-01-28 05:41:56 +0000
commit7951ce46f36f660578ec966024ff33a0195a8f93 (patch)
tree7b55067fb0e9c9e0cf42a4e65ab55b71ff69bb47 /tests
parent79eb3b64d6468c8c21f697e7b17fa2750538de11 (diff)
downloadlibexpat-7951ce46f36f660578ec966024ff33a0195a8f93.tar.gz
make all C strings ASCII (7-bits) to avoid editors from trying to
re-encode the source text incorrectly; we really want the input data to be exactly what it should be
Diffstat (limited to 'tests')
-rw-r--r--tests/runtests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.c b/tests/runtests.c
index 849ddc1..f86b124 100644
--- a/tests/runtests.c
+++ b/tests/runtests.c
@@ -247,7 +247,7 @@ START_TEST(test_danish_latin1)
{
char *text =
"<?xml version='1.0' encoding='iso-8859-1'?>\n"
- "<e>Jørgen æøåÆØÅ</e>";
+ "<e>J\xF8rgen \xE6\xF8\xE5\xC6\xD8\xC5</e>";
run_character_check(text,
"J\xC3\xB8rgen \xC3\xA6\xC3\xB8\xC3\xA5\xC3\x86\xC3\x98\xC3\x85");
}
@@ -378,8 +378,8 @@ START_TEST(test_latin1_umlauts)
{
char *text =
"<?xml version='1.0' encoding='iso-8859-1'?>\n"
- "<e a='ä ö ü &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; >'\n"
- " >ä ö ü &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; ></e>";
+ "<e a='\xE4 \xF6 \xFC &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; >'\n"
+ " >\xE4 \xF6 \xFC &#228; &#246; &#252; &#x00E4; &#x0F6; &#xFC; ></e>";
char *utf8 =
"\xC3\xA4 \xC3\xB6 \xC3\xBC "
"\xC3\xA4 \xC3\xB6 \xC3\xBC "