mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
[getn-hb-version.py] Open old output in UTF-8 mode as well
Fixes https://github.com/harfbuzz/harfbuzz/issues/3227
This commit is contained in:
1 parent
9247d24d7f
commit
6f19094398
1 file changed
+1
-1
@@ -15,7 +15,7 @@ INPUT = sys.argv[3]
|
||||
CURRENT_SOURCE_DIR = os.path.dirname(INPUT)
|
||||
|
||||
try:
|
||||
with open (OUTPUT, "r") as old_output:
|
||||
with open (OUTPUT, "r", encoding='utf-8') as old_output:
|
||||
for line in old_output:
|
||||
old_version = re.match (r"#define HB_VERSION_STRING \"(\d.\d.\d)\"", line)
|
||||
if old_version and old_version[1] == version:
|
||||
|
||||
Reference in new issue
Block a user