Skip to content

Commit f65791d

Browse files
gyp: fix utf8 encoding
1 parent 7d093bf commit f65791d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gyp/pylib/gyp/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def LoadOneBuildFile(build_file_path, data, aux_data, includes, is_target, check
225225
return data[build_file_path]
226226

227227
if os.path.exists(build_file_path):
228-
build_file_contents = open(build_file_path).read()
228+
build_file_contents = open(build_file_path, encoding='utf-8').read()
229229
else:
230230
raise GypError(f"{build_file_path} not found (cwd: {os.getcwd()})")
231231

0 commit comments

Comments
 (0)