diff options
author | Lukas Larsson <[email protected]> | 2012-05-30 17:16:16 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-08-10 10:57:22 +0200 |
commit | c4065f1b503d97cd05e9c5c791ec387a93875021 (patch) | |
tree | c218addb2113a68a5fda21e140c306145cde805a /lib/eunit | |
parent | 1a90915b4305afb9ee097e03c8a40b3ff5f8e33d (diff) | |
download | otp-c4065f1b503d97cd05e9c5c791ec387a93875021.tar.gz otp-c4065f1b503d97cd05e9c5c791ec387a93875021.tar.bz2 otp-c4065f1b503d97cd05e9c5c791ec387a93875021.zip |
Write chars as UTF-8 to file
Diffstat (limited to 'lib/eunit')
-rw-r--r-- | lib/eunit/src/eunit_surefire.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/eunit/src/eunit_surefire.erl b/lib/eunit/src/eunit_surefire.erl index 2a6cbca14d..69f471d130 100644 --- a/lib/eunit/src/eunit_surefire.erl +++ b/lib/eunit/src/eunit_surefire.erl @@ -232,7 +232,7 @@ write_reports(TestSuites, XmlDir) -> write_report(#testsuite{name = Name} = TestSuite, XmlDir) -> Filename = filename:join(XmlDir, lists:flatten(["TEST-", escape_suitename(Name)], ".xml")), - case file:open(Filename, [write, raw]) of + case file:open(Filename, [write,{encoding,utf8}]) of {ok, FileDescriptor} -> try write_report_to(TestSuite, FileDescriptor) |