提交 cc46cd88 编写于 作者: G Garret Rieger 提交者: Rod Sheeter

In generate-expected-outputs read the test definition with utf8 encoding.

上级 4cdae914
......@@ -3,6 +3,7 @@
# Pre-generates the expected output subset files (via fonttools) for
# specified subset test suite(s).
import io
import os
import sys
......@@ -26,7 +27,7 @@ if not args:
usage()
for path in args:
with open(path, 'r') as f:
with io.open(path, mode="r", encoding="utf-8") as f:
test_suite = SubsetTestSuite(path, f.read())
output_directory = test_suite.get_output_directory()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册