From 8b81aae8704512d6c77f09e991eb77c800654d2e Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:55:36 +1200 Subject: [PATCH] Update preflight-checks.py for windows --- buildroot/share/PlatformIO/scripts/preflight-checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot/share/PlatformIO/scripts/preflight-checks.py b/buildroot/share/PlatformIO/scripts/preflight-checks.py index 8c52234a94..307c2fb33f 100644 --- a/buildroot/share/PlatformIO/scripts/preflight-checks.py +++ b/buildroot/share/PlatformIO/scripts/preflight-checks.py @@ -147,7 +147,7 @@ if pioutil.is_pio_build(): for f in config_files: conf_path = project_dir / "Marlin" / f if conf_path.is_file(): - with open(conf_path, 'r') as file: + with open(conf_path, 'r', encoding="utf8") as file: text = file.read() modified_text = text.replace("BOTH(", "ALL(").replace("EITHER(", "ANY(") if text != modified_text: