From 3c050bc44c20e82e914f3e9da2233a17cab754c8 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Thu, 1 Oct 2026 18:18:57 -0400 Subject: [PATCH] The screenshot skill's messages are plain ASCII Piped rather than shown in a console, Python on Windows writes stderr in the legacy code page, so the em dash in "can't reach the PicoCalc" came out as a replacement character. Co-Authored-By: Claude Opus 5.5 (1M context) --- .claude/skills/screenshot-picocalc/scripts/picocalc_shot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.claude/skills/screenshot-picocalc/scripts/picocalc_shot.py b/.claude/skills/screenshot-picocalc/scripts/picocalc_shot.py index 0f18f98..2958e75 100644 --- a/.claude/skills/screenshot-picocalc/scripts/picocalc_shot.py +++ b/.claude/skills/screenshot-picocalc/scripts/picocalc_shot.py @@ -107,7 +107,7 @@ def grab(env: dict[str, str], fb: str) -> bytes: except subprocess.TimeoutExpired: sys.exit(f"picocalc_shot: {host} stopped answering mid-capture") if done.returncode == 255: - sys.exit(f"picocalc_shot: can't reach {user}@{host} over SSH — is the PicoCalc on and " + sys.exit(f"picocalc_shot: can't reach {user}@{host} over SSH. Is the PicoCalc on and " f"on Wi-Fi?\n{done.stderr.decode(errors='replace').strip()}") if done.returncode != 0: sys.exit(f"picocalc_shot: the device side failed (exit {done.returncode}):\n" @@ -216,7 +216,7 @@ def main() -> None: target.parent.mkdir(parents=True, exist_ok=True) target.write_bytes(png(w, h, rows)) if not any(p != b"\x00\x00\x00" for p in pixels): - print("picocalc_shot: the frame is entirely black — the console may be blanked", + print("picocalc_shot: the frame is entirely black; the console may be blanked", file=sys.stderr) print(f"{w}x{h} from the panel", file=sys.stderr) print(target)