From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: L10N & LC variables Date: Sat, 27 May 2017 10:59:15 +0300 Message-ID: <83lgpiivcc.fsf@gnu.org> References: <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com> <58516957-5971-7a1f-a4e2-d276f2881046@cs.ucla.edu> <20170527003808.GA67653@breton.holly.idiocy.org> <20170527073359.GA67815@breton.holly.idiocy.org> 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 1495872004 19075 195.159.176.226 (27 May 2017 08:00:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 May 2017 08:00:04 +0000 (UTC) Cc: jean.christophe.helary@gmail.com, emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 27 09:59:52 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dEWdb-0004c4-Dd for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 09:59:51 +0200 Original-Received: from localhost ([::1]:39767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEWdf-0003cG-9j for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 03:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEWd6-0003cB-0v for emacs-devel@gnu.org; Sat, 27 May 2017 03:59:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEWd2-0001zx-VK for emacs-devel@gnu.org; Sat, 27 May 2017 03:59:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEWd2-0001zm-Rv; Sat, 27 May 2017 03:59:16 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2046 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEWd1-0004zg-TZ; Sat, 27 May 2017 03:59:16 -0400 In-reply-to: <20170527073359.GA67815@breton.holly.idiocy.org> (message from Alan Third on Sat, 27 May 2017 08:33:59 +0100) 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215258 Archived-At: > Date: Sat, 27 May 2017 08:33:59 +0100 > From: Alan Third > Cc: emacs-devel > > LANG is used in set-locale-environment in mule-cmds.el, but I don’t > know what is set using it. The doc string of set-locale-environment says quite a lot about that: This sets the language environment, the coding system priority, the default input method and sometimes other things. > I know almost nothing about locales in emacs. They are mainly used for setting up the defaults for encoding and decoding incoming/outgoing text outside of Emacs. > The main motivation for setting LANG on macOS was so that external > commands would be given the correct locale, eg. spell checkers. Spell-checking uses this to tell the speller what dictionary to use. > Would it be worth creating a function available from lisp that returns > system locale information? What information would that function return? Does "C-h L" do what you want? If not, what is missing? Anyway, I think we should separate the issues related to translation infrastructure from issues related to setting the language for fetching strings translated into that language. They are two orthogonal problems; in particular, I can easily envision an Emacs user wishing to set a language that has nothing to do with the user's locale, for example to test some translations. Also, the notion of "current language" has implications elsewhere in Emacs, like in case conversions. We should handle these two classes of issues separately.