From d5c60a00a9d065701018c66cc1dc615ad220e2ac Mon Sep 17 00:00:00 2001 From: arlophoenix Date: Mon, 3 Aug 2026 11:49:31 +1200 Subject: [PATCH 1/2] Repair double-encoded box-drawing characters in two K1 2025 menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The built-in camera and chassis light menus each contain two lines where U+2502 (│) was written as bytes d0 b2 e2 80 9d e2 80 9a — the correct e2 94 82 encoding read as CP1251 and re-encoded as UTF-8. They render as в”‚ and break the box borders. These four lines are the only occurrences in the repo. --- scripts/tools.sh | 4 ++-- scripts/usb_camera.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/tools.sh b/scripts/tools.sh index 8f317b4..cce45ed 100755 --- a/scripts/tools.sh +++ b/scripts/tools.sh @@ -63,8 +63,8 @@ function add_chassis_light_control_message(){ title 'Add chassis light control' "${yellow}" inner_line hr - echo -e " в”‚ ${cyan}This adds K1 2025 chassis light control to printer.cfg. ${white}в”‚" - echo -e " в”‚ ${cyan}The LED is connected to PA8. ${white}в”‚" + echo -e " │ ${cyan}This adds K1 2025 chassis light control to printer.cfg. ${white}│" + echo -e " │ ${cyan}The LED is connected to PA8. ${white}│" hr bottom_line } diff --git a/scripts/usb_camera.sh b/scripts/usb_camera.sh index 2d23a66..85ea0f1 100755 --- a/scripts/usb_camera.sh +++ b/scripts/usb_camera.sh @@ -18,8 +18,8 @@ function builtin_camera_message(){ title 'Built-in Camera Fix' "${yellow}" inner_line hr - echo -e " в”‚ ${cyan}This allows to use the K1 2025 built-in camera with ${white}в”‚" - echo -e " в”‚ ${cyan}Fluidd and Mainsail through mjpg-streamer. ${white}в”‚" + echo -e " │ ${cyan}This allows to use the K1 2025 built-in camera with ${white}│" + echo -e " │ ${cyan}Fluidd and Mainsail through mjpg-streamer. ${white}│" hr bottom_line } From 7ae207ad81736f62941c28b144dbd03d109e2556 Mon Sep 17 00:00:00 2001 From: arlophoenix Date: Mon, 3 Aug 2026 11:52:17 +1200 Subject: [PATCH 2/2] Pad the four repaired lines back to the menu body width The corrupt bytes were 5 wider than the character they stood in for, and the padding on three of these lines had been hand-fitted to the mangled render. With the encoding corrected they came out 1-2 columns short. Restores them to 65 columns, matching every other menu body line. --- scripts/tools.sh | 2 +- scripts/usb_camera.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/tools.sh b/scripts/tools.sh index cce45ed..8e6c1c0 100755 --- a/scripts/tools.sh +++ b/scripts/tools.sh @@ -63,7 +63,7 @@ function add_chassis_light_control_message(){ title 'Add chassis light control' "${yellow}" inner_line hr - echo -e " │ ${cyan}This adds K1 2025 chassis light control to printer.cfg. ${white}│" + echo -e " │ ${cyan}This adds K1 2025 chassis light control to printer.cfg. ${white}│" echo -e " │ ${cyan}The LED is connected to PA8. ${white}│" hr bottom_line diff --git a/scripts/usb_camera.sh b/scripts/usb_camera.sh index 85ea0f1..e09cf6f 100755 --- a/scripts/usb_camera.sh +++ b/scripts/usb_camera.sh @@ -18,8 +18,8 @@ function builtin_camera_message(){ title 'Built-in Camera Fix' "${yellow}" inner_line hr - echo -e " │ ${cyan}This allows to use the K1 2025 built-in camera with ${white}│" - echo -e " │ ${cyan}Fluidd and Mainsail through mjpg-streamer. ${white}│" + echo -e " │ ${cyan}This allows to use the K1 2025 built-in camera with ${white}│" + echo -e " │ ${cyan}Fluidd and Mainsail through mjpg-streamer. ${white}│" hr bottom_line }