mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-25 15:44:02 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue