From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Going Unicode all out in Emacs 26.1 Date: Sat, 09 Jun 2018 18:24:35 +0300 Message-ID: <83o9gkrnik.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528557937 7998 195.159.176.226 (9 Jun 2018 15:25:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2018 15:25:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 17:25:33 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 1fRfkC-0001xg-AT for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 17:25:32 +0200 Original-Received: from localhost ([::1]:40677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRfmJ-0001I3-7Q for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jun 2018 11:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRfjI-0007mO-Sk for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 11:24:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRfjF-0007Rs-Mx for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 11:24:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRfjF-0007Rn-JU for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 11:24:33 -0400 Original-Received: from [176.228.60.248] (port=4890 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fRfjE-0002qT-HL for help-gnu-emacs@gnu.org; Sat, 09 Jun 2018 11:24:33 -0400 In-reply-to: (message from Filipp Gunbin on Sat, 09 Jun 2018 18:00:40 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:117069 Archived-At: > 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. 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!