From 06f36dc7467f0053767f307a18933df556074d99 Mon Sep 17 00:00:00 2001 From: kaidegit <60053077+kaidegit@users.noreply.github.com> Date: Sun, 26 Dec 2021 10:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20open=20for=20bin=20rename?= =?UTF-8?q?=20(#23351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/share/PlatformIO/scripts/marlin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot/share/PlatformIO/scripts/marlin.py b/buildroot/share/PlatformIO/scripts/marlin.py index 4830232d0b..2114a05fb3 100644 --- a/buildroot/share/PlatformIO/scripts/marlin.py +++ b/buildroot/share/PlatformIO/scripts/marlin.py @@ -51,7 +51,7 @@ def encrypt_mks(source, target, env, new_name): # If FIRMWARE_BIN is defined by config, override all import re patt = re.compile("^\\s*#define\\s+FIRMWARE_BIN\\s+\"?(.+)\"?") - with open(join("Marlin", "Configuration.h")) as f: + with open(join("Marlin", "Configuration.h"), encoding="utf-8") as f: for line in f: m = patt.search(line) if m != None: