From: Fred L. Drake, Jr. Date: Mon, 22 Apr 2002 18:50:18 +0000 (+0000) Subject: Add a new test that demonstrates SF bug #481609 is invalid. X-Git-Tag: R_1_95_3~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2baa2aec270e549c72933d8b29463b0c3b51d05;p=libexpat Add a new test that demonstrates SF bug #481609 is invalid. --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index e1d2e657..8b1e54cb 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -303,6 +303,22 @@ START_TEST(test_utf16) } END_TEST +/* Regression test for SF bug #481609. */ +START_TEST(test_latin1_umlauts) +{ + char *text = + "\n" + "ä ö ü ä ö ü ä ö ü"; + char *utf8 = + "\xC3\xA4 \xC3\xB6 \xC3\xBC " + "\xC3\xA4 \xC3\xB6 \xC3\xBC " + "\xC3\xA4 \xC3\xB6 \xC3\xBC"; + run_character_check(text, utf8); + run_attribute_check(text, utf8); +} +END_TEST + /* Helpers used by the following test; this checks any "attr" and "refs" * attributes to make sure whitespace has been normalized. @@ -503,6 +519,7 @@ make_basic_suite(void) tcase_add_test(tc_chars, test_bom_utf16_le); tcase_add_test(tc_chars, test_illegal_utf8); tcase_add_test(tc_chars, test_utf16); + tcase_add_test(tc_chars, test_latin1_umlauts); /* Regression test for SF bug #491986. */ tcase_add_test(tc_chars, test_danish_latin1); /* Regression test for SF bug #514281. */