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,7 +51,7 @@ def encrypt_mks(source, target, env, new_name):
51 51
 	# If FIRMWARE_BIN is defined by config, override all
52 52
 	import re
53 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 55
 		for line in f:
56 56
 			m = patt.search(line)
57 57
 			if m != None:

Loading…
Cancel
Save