From 37d9a3544b42ab6b42de101fa6486c4d9d11ce2e Mon Sep 17 00:00:00 2001 From: Shivam Maurya <54358380+shvmm@users.noreply.github.com> Date: Wed, 5 Nov 2025 00:16:49 +0530 Subject: [PATCH] Fixed firmware metrics display issue on Windows --- builder/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/main.py b/builder/main.py index f9f8a3694..69122b383 100644 --- a/builder/main.py +++ b/builder/main.py @@ -596,8 +596,8 @@ def firmware_metrics(target, source, env): source: SCons source env: SCons environment object """ - if terminal_cp != "utf-8": - print("Firmware metrics can not be shown. Set the terminal codepage to \"utf-8\"") + if terminal_cp not in ["utf-8", "cp65001"]: + print("Firmware metrics can not be shown. Set the terminal codepage to \"utf-8\" or \"cp65001\" on Windows.") return map_file = str(Path(env.subst("$BUILD_DIR")) / (env.subst("$PROGNAME") + ".map"))