From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27505: LC_CTYPE affects tutorial language Date: Tue, 27 Jun 2017 18:05:27 +0300 Message-ID: <8337alsc7c.fsf@gnu.org> References: <44eb186d-db67-3e93-31cd-8260f5df7781@lausen.nl> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1498575977 17657 195.159.176.226 (27 Jun 2017 15:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2017 15:06:17 +0000 (UTC) Cc: 27505@debbugs.gnu.org To: Leonard Lausen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 27 17:06:13 2017 Return-path: Envelope-to: geb-bug-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 1dPs47-0004A3-Pe for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jun 2017 17:06:07 +0200 Original-Received: from localhost ([::1]:53338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPs4D-0005Mq-21 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jun 2017 11:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPs46-0005LN-8k for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 11:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPs42-000665-De for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 11:06:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPs42-00065j-8u for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 11:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPs42-0000gA-1s for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2017 11:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2017 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27505 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27505-submit@debbugs.gnu.org id=B27505.14985759472588 (code B ref 27505); Tue, 27 Jun 2017 15:06:02 +0000 Original-Received: (at 27505) by debbugs.gnu.org; 27 Jun 2017 15:05:47 +0000 Original-Received: from localhost ([127.0.0.1]:40991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs3m-0000fg-Qw for submit@debbugs.gnu.org; Tue, 27 Jun 2017 11:05:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs3l-0000fU-K9 for 27505@debbugs.gnu.org; Tue, 27 Jun 2017 11:05:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPs3c-0004ot-U2 for 27505@debbugs.gnu.org; Tue, 27 Jun 2017 11:05:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPs3c-0004oY-Qo; Tue, 27 Jun 2017 11:05:36 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4394 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dPs3c-0006sW-68; Tue, 27 Jun 2017 11:05:36 -0400 In-reply-to: <44eb186d-db67-3e93-31cd-8260f5df7781@lausen.nl> (message from Leonard Lausen on Tue, 27 Jun 2017 23:48:41 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133954 Archived-At: > From: Leonard Lausen > Date: Tue, 27 Jun 2017 23:48:41 +0900 > > as far as I know the environment variable LC_CTYPE applies to > classification and conversion of characters, and to multibyte and wide > characters. So setting it should not influence the interface language, > correct? > > However, with the following locale: > LANG=en_US.UTF-8 > LC_CTYPE=zh_CN.UTF-8 > LC_NUMERIC="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_COLLATE=C > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > > I find that the emacs tutorial (C-h t) is displayed in Chinese. > > Is this expected behavior or a bug? It's the intended behavior: LC_CTYPE affects the language environment which Emacs sets up by default. From the Emacs manual: Some operating systems let you specify the character-set locale you are using by setting the locale environment variables ‘LC_ALL’, ‘LC_CTYPE’, or ‘LANG’. (If more than one of these is set, the first one that is nonempty specifies your locale for this purpose.) During startup, Emacs looks up your character-set locale’s name in the system locale alias table, matches its canonical name against entries in the value of the variables ‘locale-charset-language-names’ and ‘locale-language-names’ (the former overrides the latter), and selects the corresponding language environment if a match is found. It also adjusts the display table and terminal coding system, the locale coding system, the preferred coding system as needed for the locale, and—last but not least—the way Emacs decodes non-ASCII characters sent by your keyboard. And the language environment includes a setting for the default tutorial.