[PR #18565] Add CP_UTF8 support to GetConsoleLangId #31557

Open
opened 2026-01-31 09:48:00 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18565

State: open
Merged: No


The reasons why the console code page has an effect on the default
thread locale on Windows is not noted anywhere. If I had to take a
guess, I'd say it's related to the history of the han unification.

In any case, CP_UTF8 is not a "code page" and so it should not have
an effect on the thread locale either. This issue goes all the way
back to the introduction of CP_UTF8 in XP, over 20 years ago.

Closes MSFT-56188683

Validation Steps Performed

  • Switch OS display language to Japanese
  • Switch user default codepage to Japanese (932)
  • Run the modded OpenConsole
  • chcp 65001
  • netsh interface ipv4 show interface
    has Japanese table headers
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18565 **State:** open **Merged:** No --- The reasons why the console code page has an effect on the default thread locale on Windows is not noted anywhere. If I had to take a guess, I'd say it's related to the history of the han unification. In any case, CP_UTF8 is not a "code page" and so it should not have an effect on the thread locale either. This issue goes all the way back to the introduction of CP_UTF8 in XP, over 20 years ago. Closes MSFT-56188683 ## Validation Steps Performed * Switch OS display language to Japanese * Switch user default codepage to Japanese (932) * Run the modded OpenConsole * `chcp 65001` * `netsh interface ipv4 show interface` has Japanese table headers ❌
claunia added the pull-request label 2026-01-31 09:48:00 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31557