Skip to content

Commit 147e623

Browse files
committed
test: use ISO-8859-1 for portability
It seems that libxml2 on AlmaLinux 8 doesn't enable iconv nor ICU. So we can't use EUC-JP with libxml2 on AlmaLinux 8.
1 parent 95eb70d commit 147e623

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test-serialize.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ end
1414

1515
function TestSave.test_to_html_encoding()
1616
local html = xmlua.HTML.parse("<html><head></head></html>")
17-
luaunit.assertEquals(html:to_html({encoding = "EUC-JP"}),
17+
luaunit.assertEquals(html:to_html({encoding = "ISO-8859-1"}),
1818
[[
1919
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
20-
<html><head><meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"></head></html>
20+
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head></html>
2121
]])
2222
end
2323

@@ -32,9 +32,9 @@ end
3232

3333
function TestSave.test_to_xml_encoding()
3434
local xml = xmlua.XML.parse("<root/>")
35-
luaunit.assertEquals(xml:to_xml({encoding = "EUC-JP"}),
35+
luaunit.assertEquals(xml:to_xml({encoding = "ISO-8859-1"}),
3636
[[
37-
<?xml version="1.0" encoding="EUC-JP"?>
37+
<?xml version="1.0" encoding="ISO-8859-1"?>
3838
<root/>
3939
]])
4040
end

0 commit comments

Comments
 (0)