We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dced9be commit 6e3828fCopy full SHA for 6e3828f
deps/v8/tools/gen-postmortem-metadata.py
@@ -49,6 +49,7 @@
49
# for py2/py3 compatibility
50
from __future__ import print_function
51
52
+import io
53
import re
54
import sys
55
@@ -380,7 +381,7 @@ def load_objects():
380
381
382
383
def load_objects_from_file(objfilename, checktypes):
- objfile = open(objfilename, 'r');
384
+ objfile = io.open(objfilename, 'r', encoding='utf-8');
385
in_insttype = False;
386
387
typestr = '';
@@ -575,7 +576,7 @@ def load_fields():
575
576
577
578
def load_fields_from_file(filename):
- inlfile = open(filename, 'r');
579
+ inlfile = io.open(filename, 'r', encoding='utf-8');
580
581
#
582
# Each class's fields and the corresponding offsets are described in the
0 commit comments