summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorKusok <118438257+kus04e4ek@users.noreply.github.com>2024-06-19 17:20:48 +0800
committerKusok <118438257+kus04e4ek@users.noreply.github.com>2024-06-19 23:35:03 +0800
commit0c6dbbd050866054b6758223871cf65497461364 (patch)
treed188e41ff7888544b80c0e506e6d7799dc648ced /SConstruct
parentcd87b0bf84fa530d7b86a372dd09e4d9adcfa3a5 (diff)
downloadredot-engine-0c6dbbd050866054b6758223871cf65497461364.tar.gz
Fix not using `encoding="utf-8"` when writing to files or reading from them
Co-authored-by: ChristopheClaustre <christophe.claustre.31@gmail.com>
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f4b8f03519..3fabc4706f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -566,7 +566,7 @@ if env["build_profile"] != "":
import json
try:
- ft = json.load(open(env["build_profile"]))
+ ft = json.load(open(env["build_profile"], "r", encoding="utf-8"))
if "disabled_classes" in ft:
env.disabled_classes = ft["disabled_classes"]
if "disabled_build_options" in ft: