Browse Source

🐛 Fix open for bin rename (#23351)

kaidegit 3 years ago
parent
commit
d7af619936
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      buildroot/share/PlatformIO/scripts/marlin.py

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

51
 	# If FIRMWARE_BIN is defined by config, override all
51
 	# If FIRMWARE_BIN is defined by config, override all
52
 	import re
52
 	import re
53
 	patt = re.compile("^\\s*#define\\s+FIRMWARE_BIN\\s+\"?(.+)\"?")
53
 	patt = re.compile("^\\s*#define\\s+FIRMWARE_BIN\\s+\"?(.+)\"?")
54
-	with open(join("Marlin", "Configuration.h")) as f:
54
+	with open(join("Marlin", "Configuration.h"), encoding="utf-8") as f:
55
 		for line in f:
55
 		for line in f:
56
 			m = patt.search(line)
56
 			m = patt.search(line)
57
 			if m != None:
57
 			if m != None:

Loading…
Cancel
Save