fix: use an ASCII hyphen in the window title and usage banner #10

Manually merged
github merged 1 commit from gh-pr/10/head into gh-pr/10/base 2026-11-26 19:55:34 +00:00
Owner

@⁠AutoComput on GitHub · 2026-11-21 10:37 UTC · original
AutoComput:fix/ascii-window-title → main · +2 −2 · 2 files · 1 commits · merged 2026-11-22 09:58 UTC

TL;DR

  • Problem: The window title and the help text show garbage characters where a long dash should be.
  • Fix: They use a plain hyphen now.

The output window title and the usage banner have an em dash in a narrow string literal. The source is UTF-8 and nothing switches the process to a UTF-8 code page, so on a cp1252 system the title reads ScarlettX — Xbox Series X|S and a cp437 console prints ScarlettX ΓÇö Xbox Series X|S.

Both now use a plain hyphen. Those were the only two non-ASCII string literals in the sources.

Checked the title with GetWindowTextW and the banner bytes before and after. Touches main.cpp three lines above the usage line that #3 and #7 edit.

**@⁠AutoComput** on GitHub · 2026-11-21 10:37 UTC · [original](https://github.com/Freminet/ScarlettX/pull/10) `AutoComput:fix/ascii-window-title` → `main` · +2 −2 · 2 files · 1 commits · merged 2026-11-22 09:58 UTC **TL;DR** - **Problem:** The window title and the help text show garbage characters where a long dash should be. - **Fix:** They use a plain hyphen now. The output window title and the usage banner have an em dash in a narrow string literal. The source is UTF-8 and nothing switches the process to a UTF-8 code page, so on a cp1252 system the title reads `ScarlettX — Xbox Series X|S` and a cp437 console prints `ScarlettX ΓÇö Xbox Series X|S`. Both now use a plain hyphen. Those were the only two non-ASCII string literals in the sources. Checked the title with `GetWindowTextW` and the banner bytes before and after. Touches `main.cpp` three lines above the usage line that #3 and #7 edit.
The em dash in these narrow string literals is UTF-8 in the source and no
UTF-8 code page is active, so the output window title and the usage banner
showed it as three garbled characters. Both now use a plain hyphen.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:55:31 +00:00
github manually merged commit 2ece9d12c7 into gh-pr/10/base 2026-11-26 19:55:34 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.