conhost with raster fonts: chcp 65001 breaks rendering of box-drawing characters #21228

Open
opened 2026-01-31 07:37:08 +00:00 by claunia · 0 comments
Owner

Originally created by @lhecker on GitHub (Feb 10, 2024).

Windows Terminal version

d3a18b9

Windows build number

No response

Other Software

No response

Steps to reproduce

  • Print box-drawing characters
  • chcp 65001 -> It worky :)
  • Ctrl+Scroll -> It no worky :(

Expected Behavior

This behavior is sus and I feel like this may not be a limitation in GDI. The ASCII characters all still work and the font doesn't actually change at all when you Ctrl+Scroll. LOGFONTW has a code-page field and we probably do something wrong there, or the .fon files have some weird logic that makes box-drawing glyphs code-page dependent. 🤔

In any case, we probably shouldn't treat 65001 as any old code page and instead use the CP_ACP instead.

Actual Behavior

image

image

Originally created by @lhecker on GitHub (Feb 10, 2024). ### Windows Terminal version d3a18b9 ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce * Print box-drawing characters * chcp 65001 -> It worky :) * Ctrl+Scroll -> It no worky :( ### Expected Behavior This behavior is sus and I feel like this may not be a limitation in GDI. The ASCII characters all still work and the font doesn't actually change at all when you Ctrl+Scroll. `LOGFONTW` has a code-page field and we probably do something wrong there, _or_ the .fon files have some weird logic that makes box-drawing glyphs code-page dependent. 🤔 In any case, we probably shouldn't treat 65001 as any old code page and instead use the CP_ACP instead. ### Actual Behavior ![image](https://github.com/microsoft/terminal/assets/2256941/e142721a-eb99-42f8-a3ab-3b29f2c7df28) ![image](https://github.com/microsoft/terminal/assets/2256941/f690cb3d-25ad-41ce-a10f-dee1d584fd2d)
claunia added the Product-ConhostArea-RenderingIssue-BugNeeds-Tag-FixPriority-1 labels 2026-01-31 07:37:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21228