]> git.eshelyaron.com Git - emacs.git/commit
Fix language-environment and font selection on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Feb 2021 15:52:30 +0000 (17:52 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Feb 2021 15:52:30 +0000 (17:52 +0200)
commitabedf3a8653829f5170ff72b2fc7adad0e6f80d4
treef45210093b04d7612eaf0b00b35b149abb2c8bdd
parent8b8708eadd94fcdad4c426a20370ff4ab13df258
Fix language-environment and font selection on MS-Windows

These changes improve setting the language-environment and font
selection when MS-Windows returns useless "ZZZ" as the "language
name", which then disrupts all the setup of the locale-dependent
stuff, and in particular font selection.
* lisp/w32-fns.el (w32-charset-info-alist): Add an element for
"iso8859-5", in case LANG is set to something unusable, like
"ZZZ".  This allows fonts capable of displaying Cyrillic
characters to be used even when language preferences are screwed.

* src/w32.c (init_environment): If GetLocaleInfo returns "ZZZ" as
the "language name" for LOCALE_USER_DEFAULT, try again with locale
ID based on what GetUserDefaultUILanguage returns.  (Bug#39286)
lisp/w32-fns.el
src/w32.c