From e0dac94a596ef4a1b178c5ed80712c5df26849b4 Mon Sep 17 00:00:00 2001 From: Sukhbinder Singh Date: Sun, 20 Sep 2026 10:18:15 +0100 Subject: [PATCH] Add UTF-8 encoding to subprocess call in clipboard.py to fix windows /copy bug --- src/kon/ui/clipboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kon/ui/clipboard.py b/src/kon/ui/clipboard.py index e43e2842..ac852e7b 100644 --- a/src/kon/ui/clipboard.py +++ b/src/kon/ui/clipboard.py @@ -50,6 +50,7 @@ def _try_run(command: list[str], text: str) -> bool: text=True, check=True, timeout=5, + encoding="utf-8", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, )