Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e3828f

Browse filesBrowse files
cclaussMylesBorins
authored andcommitted
deps: V8: cherry-pick a7dffcd767be
Original commit message: [postmortem] Load files using utf-8 to support Python 3 Change-Id: I174d38cc33210c07d1a7596627e1b2d21bb06313 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1895560 Reviewed-by: Mathias Bynens <mathias@chromium.org> Commit-Queue: Michaël Zasso <mic.besace@gmail.com> Cr-Commit-Position: refs/heads/master@{#64717} Refs: v8/v8@a7dffcd Backport-PR-URL: #30109 PR-URL: #30218 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent dced9be commit 6e3828f
Copy full SHA for 6e3828f

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎deps/v8/tools/gen-postmortem-metadata.py‎

Copy file name to clipboardExpand all lines: deps/v8/tools/gen-postmortem-metadata.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
# for py2/py3 compatibility
5050
from __future__ import print_function
5151

52+
import io
5253
import re
5354
import sys
5455

@@ -380,7 +381,7 @@ def load_objects():
380381

381382

382383
def load_objects_from_file(objfilename, checktypes):
383-
objfile = open(objfilename, 'r');
384+
objfile = io.open(objfilename, 'r', encoding='utf-8');
384385
in_insttype = False;
385386

386387
typestr = '';
@@ -575,7 +576,7 @@ def load_fields():
575576

576577

577578
def load_fields_from_file(filename):
578-
inlfile = open(filename, 'r');
579+
inlfile = io.open(filename, 'r', encoding='utf-8');
579580

580581
#
581582
# Each class's fields and the corresponding offsets are described in the

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.