Files
reims-vgpu/scripts/internal
Anees Iqbal 61255060cb 🐛 Keep the window's title ASCII so X11 shows it whole
On a Linux host under X11, the window's title showed stray characters
where its dash was ("Reims vGPU — click to capture input" read
with garbage where its em dash was). SDL sets an X11 window's WM_NAME through
XmbTextListToTextProperty in the process's locale, which is C under
QEMU, and our title suffixes began with an em dash, which that locale
cannot carry. Where a locale has no such character at all, SDL sets
neither WM_NAME nor _NET_WM_NAME, and the title does not change.

The suffixes now begin with a plain hyphen on every host, so the title
is ASCII on Linux and Windows and reaches the window manager as it is.
macOS keeps its release chord's glyphs: AppKit, and SDL's window on
macOS, take the title as UTF-8. A test checks every title the window
sets, for each port form and capture state, and the window's features
register, README and the macOS walk quote the new title.

(cherry picked from commit 43f455743457174f64efd1e852cc038c683ee213)
2026-12-03 11:02:36 -08:00
..