projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cdae91
)
In generate-expected-outputs read the test definition with utf8 encoding.
author
Garret Rieger
<grieger@google.com>
Fri, 26 Jan 2018 22:25:39 +0000
(14:25 -0800)
committer
Rod Sheeter
<rsheeter@google.com>
Sun, 4 Feb 2018 20:57:33 +0000
(12:57 -0800)
test/subset/generate-expected-outputs.py
patch
|
blob
|
history
diff --git
a/test/subset/generate-expected-outputs.py
b/test/subset/generate-expected-outputs.py
index
87db5d5
..
f6636de
100755
(executable)
--- a/
test/subset/generate-expected-outputs.py
+++ b/
test/subset/generate-expected-outputs.py
@@
-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()