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: Sivaram Neelakantan
Subject: Re: Going Unicode all out in Emacs 26.1
Date: Tue, 12 Jun 2018 23:02:25 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt)

On Sat, Jun 09 2018,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.

Against all advice, I randomly copy Emacs snippets like the above
thinking that should be "good" for Windows too.  I think I have a mile
long cruft like this in .emacs.  I don't even go near my .gnus file
these days.


> 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!

I didn't do anything, so that seems to have saved the day for me.  For
now.


sivaram
-- 


reply via email to

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