🐛 Fix UTF-8 errror in configuration embed and retrieve (#23303)
The feature added in commit b464a4b1a4
introduced a UTF-8 encoding error for all users where UTF-8 is not the default codepage.
This commit is contained in:
@@ -12,7 +12,7 @@ import os,subprocess,re,json,hashlib
|
|||||||
# headers.
|
# headers.
|
||||||
#
|
#
|
||||||
def extract_defines(filepath):
|
def extract_defines(filepath):
|
||||||
f = open(filepath).read().split("\n")
|
f = open(filepath, encoding="utf8").read().split("\n")
|
||||||
a = []
|
a = []
|
||||||
for line in f:
|
for line in f:
|
||||||
sline = line.strip(" \t\n\r")
|
sline = line.strip(" \t\n\r")
|
||||||
|
Reference in New Issue
Block a user