Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8: load_objects_from_file() using utf-8 #30218

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.gypi
Expand Up @@ -39,7 +39,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.18',
'v8_embedder_string': '-node.19',

##### V8 defaults for Node.js #####

Expand Down
5 changes: 3 additions & 2 deletions deps/v8/tools/gen-postmortem-metadata.py
Expand Up @@ -49,6 +49,7 @@
# for py2/py3 compatibility
from __future__ import print_function

import io
import re
import sys

Expand Down Expand Up @@ -382,7 +383,7 @@ def load_objects():


def load_objects_from_file(objfilename, checktypes):
objfile = open(objfilename, 'r');
objfile = io.open(objfilename, 'r', encoding='utf-8');
in_insttype = False;

typestr = '';
Expand Down Expand Up @@ -577,7 +578,7 @@ def load_fields():


def load_fields_from_file(filename):
inlfile = open(filename, 'r');
inlfile = io.open(filename, 'r', encoding='utf-8');

#
# Each class's fields and the corresponding offsets are described in the
Expand Down