[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Going Unicode all out in Emacs 26.1
From: |
Filipp Gunbin |
Subject: |
Re: Going Unicode all out in Emacs 26.1 |
Date: |
Sat, 09 Jun 2018 22:35:22 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) |
On 09/06/2018 18:24 +0300, Eli Zaretskii wrote:
>> 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!
Ah, thanks for clarification! I'm not a Windows user, but that's nice
to know.
But what about Cygwin? Can we assume that it will itself handle these
Windows-related complexities? It seems that my language environment
setting dates back to the time when I used Cygwin.
Filipp
- Going Unicode all out in Emacs 26.1, Sivaram Neelakantan, 2018/06/06
- Re: Going Unicode all out in Emacs 26.1, Stefan Monnier, 2018/06/06
- Re: Going Unicode all out in Emacs 26.1, Eli Zaretskii, 2018/06/06
- Message not available
- Re: Going Unicode all out in Emacs 26.1, Sivaram Neelakantan, 2018/06/09
- Re: Going Unicode all out in Emacs 26.1, Eli Zaretskii, 2018/06/09
- Re: Going Unicode all out in Emacs 26.1, Filipp Gunbin, 2018/06/09
- Re: Going Unicode all out in Emacs 26.1, Eli Zaretskii, 2018/06/09
- Re: Going Unicode all out in Emacs 26.1,
Filipp Gunbin <=
- Re: Going Unicode all out in Emacs 26.1, Xavier Maillard, 2018/06/11
- Re: Going Unicode all out in Emacs 26.1, Eli Zaretskii, 2018/06/11
- Re: Going Unicode all out in Emacs 26.1, Xavier Maillard, 2018/06/12
- Message not available
- Re: Going Unicode all out in Emacs 26.1, Sivaram Neelakantan, 2018/06/12
- Message not available
- Re: Going Unicode all out in Emacs 26.1, Sivaram Neelakantan, 2018/06/09
- Re: Going Unicode all out in Emacs 26.1, Eli Zaretskii, 2018/06/09