help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Going Unicode all out in Emacs 26.1


From: Eli Zaretskii
Subject: Re: Going Unicode all out in Emacs 26.1
Date: Sat, 09 Jun 2018 18:24:35 +0300

> From: Filipp Gunbin <fgunbin@fastmail.fm>
> Date: Sat, 09 Jun 2018 18:00:40 +0300
> Cc: help-gnu-emacs@gnu.org
> 
> I have this in my .emacs:
> 
> (add-hook 'set-language-environment-hook
>         (lambda ()
>           (if (equal current-language-environment "UTF-8")
>               (setq default-input-method 'russian-computer))))
> (set-language-environment "UTF-8")

Setting the language environment to UTF-8 is precisely something
that's NOT recommended to Windows users, because MS-Windows doesn't
support UTF-8 at all as a codeset.  Emacs on Windows does, but the
UTF-8 language environment will, among other things, cause Emacs to
pass command-line arguments to programs encoded in UTF-8, something
that will not work.

Emacs users on Windows have no reasons to change the language
environment from the default (which is determined by the system's
setup), because Emacs on Windows already uses Unicode-compliant APIs
and encodings where possible (e.g., when copying text to/from the
system clipboard, when accessing non-ASCII file names, etc.).  On the
contrary, changing the language environment can easily get you in
trouble on Windows.  Caveat emptor!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]