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

This commit is contained in:
Garret Rieger 2018-01-26 14:25:39 -08:00 committed by Rod Sheeter
parent 4cdae914e2
commit cc46cd88a1
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
# Pre-generates the expected output subset files (via fonttools) for # Pre-generates the expected output subset files (via fonttools) for
# specified subset test suite(s). # specified subset test suite(s).
import io
import os import os
import sys import sys
@ -26,7 +27,7 @@ if not args:
usage() usage()
for path in args: 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()) test_suite = SubsetTestSuite(path, f.read())
output_directory = test_suite.get_output_directory() output_directory = test_suite.get_output_directory()