From 6702debcc1f63688caa9322527fbd70f95b20e01 Mon Sep 17 00:00:00 2001 From: diffwireauto <330573775+diffwireauto@users.noreply.github.com> Date: Fri, 2 Oct 2026 01:02:08 -0400 Subject: [PATCH] fix(#765): bench script prints radio names with emoji on the Windows console The console code page cannot encode them and the run crashed after the identity check. Output is now UTF-8 with replacement. Co-Authored-By: Claude Opus 5.5 --- tools/contact_recovery_bench.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/contact_recovery_bench.py b/tools/contact_recovery_bench.py index 3b977359..22342c3d 100644 --- a/tools/contact_recovery_bench.py +++ b/tools/contact_recovery_bench.py @@ -98,6 +98,8 @@ def main(): ap.add_argument("--pulls", type=int, default=3) ap.add_argument("--settle", type=float, default=10.0, help="seconds between pulls") args = ap.parse_args() + # Radio names can carry emoji the Windows console code page cannot print. + sys.stdout.reconfigure(encoding="utf-8", errors="replace") ser = serial.Serial(args.port, 115200, timeout=0.05) try: