mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-28 06:21:31 +00:00
🐛 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:
parent
5f9140cccd
commit
6dc056f771
@ -12,7 +12,7 @@ import os,subprocess,re,json,hashlib
|
||||
# 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")
|
||||
|
Loading…
Reference in New Issue
Block a user