Browse Source

🐛 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.
Robby Candra 2 years ago
parent
commit
6dc056f771
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/share/PlatformIO/scripts/signature.py

+ 1
- 1
buildroot/share/PlatformIO/scripts/signature.py View File

12
 # headers.
12
 # headers.
13
 #
13
 #
14
 def extract_defines(filepath):
14
 def extract_defines(filepath):
15
-	f = open(filepath).read().split("\n")
15
+	f = open(filepath, encoding="utf8").read().split("\n")
16
 	a = []
16
 	a = []
17
 	for line in f:
17
 	for line in f:
18
 		sline = line.strip(" \t\n\r")
18
 		sline = line.strip(" \t\n\r")

Loading…
Cancel
Save