From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.help Subject: Re: Going Unicode all out in Emacs 26.1 Date: Tue, 12 Jun 2018 23:02:25 +0530 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528824835 23534 195.159.176.226 (12 Jun 2018 17:33:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2018 17:33:55 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 12 19:33:51 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSnB1-0005xU-2v for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 19:33:51 +0200 Original-Received: from localhost ([::1]:57662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSnD3-0002Kw-26 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2018 13:35:57 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder4.usenet.farm!192.168.11.183.MISMATCH!feeder3.usenet.farm!feed.usenet.farm!eternal-september.org!feeder.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-Injection-Info: reader02.eternal-september.org; posting-host="cb4a97b9e660e73e8a3c547a5621736a"; logging-data="4476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eiZSlSLlTSBmQrspLobMPmhlPw8eVwlw=" Cancel-Lock: sha1:kpvywrxTkQQ+J+jMIWF8D/WX29k= sha1:bsGeSNM4j5rJZmAEy6LNZb4GOnQ= User-Mail-Address: nsivaram.net@gmail.com Original-Xref: usenet.stanford.edu gnu.emacs.help:223001 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117122 Archived-At: On Sat, Jun 09 2018,Eli Zaretskii wrote: >> From: Filipp Gunbin >> 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 --