Re: [vim/vim] Vim does not respect Windows display language or preferred languages (Issue #20855)

h_east (Vim Github Repository) <[email protected]> Tue, 28 Jul 2026 19:12:21 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/20855/[email protected]>
h-east left a comment (vim/vim#20855)


Thanks for the pointer.  The fix went in as patch 9.2.0867, using
GetUserPreferredUILanguages().

> IMHO, the code to be changed is inside `get_mess_lang()` (`locale.c`, line 110). Also `gui_dwrite.cpp` needs to be revised as it uses `GetUserDefaultLocaleName()` (lines 836-855).

gui_dwrite.cpp is left as it is on purpose.  That locale name goes to DWrite's
CreateTextFormat(), so it describes the language of the text being drawn, not
the UI language: it affects glyph selection (Han unification) and font
fallback.  Passing the display language there would give the wrong glyphs to
someone who reads the UI in English but edits Japanese text.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/20855#issuecomment-5111990182
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/issues/20855/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20855/5111990182%40github.com.