Skip to content

Commit

Permalink
🐛 Fix UTF-8 errror in configuration embed and retrieve (#23303)
Browse files Browse the repository at this point in the history
The feature added in commit b464a4b introduced a UTF-8 encoding error for all users where UTF-8 is not the default codepage.
  • Loading branch information
robbycandra authored Dec 16, 2021
1 parent 5f9140c commit 6dc056f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildroot/share/PlatformIO/scripts/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# headers.
#
def extract_defines(filepath):
f = open(filepath).read().split("\n")
f = open(filepath, encoding="utf8").read().split("\n")
a = []
for line in f:
sline = line.strip(" \t\n\r")
Expand Down

0 comments on commit 6dc056f

Please sign in to comment.