Skip to content

Commit

Permalink
Appropriate fix for msys2 bot fail on gen-def.py (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraminio committed Mar 16, 2018
1 parent 7b4333b commit 8d1b408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ DISTCLEANFILES += \
$(HB_GOBJECT_ENUM_headers) \
$(NULL)
hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
$(AM_V_GEN) $(GLIB_MKENUMS) \
$(AM_V_GEN) PYTHONIOENCODING=UTF-8 $(GLIB_MKENUMS) \
--identifier-prefix hb_ --symbol-prefix hb_gobject \
--template $^ | \
sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@" \
Expand Down
2 changes: 1 addition & 1 deletion src/gen-def.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
headers_content = []
for h in os.environ["headers"].split (' '):
if h.endswith (".h"):
with io.open (h, encoding='ISO-8859-1') as f: headers_content.append (f.read ())
with io.open (h, encoding='utf-8') as f: headers_content.append (f.read ())

result = """EXPORTS
%s
Expand Down

0 comments on commit 8d1b408

Please sign in to comment.