summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2022-09-03 00:06:07 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2022-09-03 00:06:07 -0400
commit23d149037fae48d9705995c74fec3a7195ba562b (patch)
tree110b5d75f894a8376e0314091822dd874772cd42
parent63cd8ed934a01799bfd2ddbe0c83a6337ee577dd (diff)
downloadorcus-feature/149-multiple-font-weight-levels.tar.gz
-rw-r--r--src/orcus_test_xml_mapped.cpp3
-rw-r--r--test/xml-mapped/encoding/euc-jp.xml12
2 files changed, 15 insertions, 0 deletions
diff --git a/src/orcus_test_xml_mapped.cpp b/src/orcus_test_xml_mapped.cpp
index c15f3bc6..a431807f 100644
--- a/src/orcus_test_xml_mapped.cpp
+++ b/src/orcus_test_xml_mapped.cpp
@@ -287,10 +287,13 @@ void test_encoding()
const test_case tests[] = {
{ test_dir / "utf-8.xml", character_set_t::utf_8 },
{ test_dir / "gbk.xml", character_set_t::gbk },
+ { test_dir / "euc-jp.xml", character_set_t::euc_jp },
};
for (const auto& test : tests)
{
+ std::cout << "reading " << test.path.string() << std::endl;
+
file_content content(test.path.string());
xmlns_repository repo;
diff --git a/test/xml-mapped/encoding/euc-jp.xml b/test/xml-mapped/encoding/euc-jp.xml
new file mode 100644
index 00000000..30f963b7
--- /dev/null
+++ b/test/xml-mapped/encoding/euc-jp.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="EUC-JP"?>
+<root>
+ <entry>ܸ죱</entry>
+ <entry>ܸ죲</entry>
+ <entry>ܸ죳</entry>
+ <entry>ܸ죴</entry>
+ <entry>ܸ죵</entry>
+ <entry>ܸ죶</entry>
+ <entry>ܸ죷</entry>
+ <entry>ܸ죸</entry>
+ <entry>ܸ죹</entry>
+</root>