From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: L10N & LC variables Date: Sat, 27 May 2017 08:13:44 +0900 Message-ID: References: <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com> <58516957-5971-7a1f-a4e2-d276f2881046@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495840443 24598 195.159.176.226 (26 May 2017 23:14:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 23:14:03 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 27 01:13:56 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 1dEOQa-00068G-Tt for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 01:13:53 +0200 Original-Received: from localhost ([::1]:38842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEOQg-0002Un-6z for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 19:13:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEOQZ-0002Uh-UF for emacs-devel@gnu.org; Fri, 26 May 2017 19:13:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEOQW-0007q2-O9 for emacs-devel@gnu.org; Fri, 26 May 2017 19:13:51 -0400 Original-Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:33942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEOQW-0007py-HV for emacs-devel@gnu.org; Fri, 26 May 2017 19:13:48 -0400 Original-Received: by mail-pf0-x236.google.com with SMTP id 9so23394800pfj.1 for ; Fri, 26 May 2017 16:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=yrdW/U/ureWqeEYYmeP9qX75R/erHfrwpZpbnWATYOk=; b=u3h3Akk8h3hoQB4w0EDRrxloO6Zi9otdU9pzpufKgSfiK/xdZFYjLyCYgwl4pyAccT X9AdanLRlTEfBE9srwNVzMKNLwjitZ+rZ/FsJsoturvq9UdSW2Ur2DHTECAknonMA5Am nYwztCDdw6Lz8Ijzp3SBLghM6kcjTborN24hehntyYAMg6LeAYn7ZqxsIRQHS+5OJZUq lZphPq5dhec8andTkHTMDqYCTBgWkCw+9QqujIB/Qemj2fq/Vgc0Ha/F3g7nRx8hR4Cm 8YElqv950/E1jl/k7a9PPyH8QRQW0qJB/646y9vRsgwu8qcMurDoRAeeLAgoUWPTsm0o OpOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=yrdW/U/ureWqeEYYmeP9qX75R/erHfrwpZpbnWATYOk=; b=bgoGADvq0WoH/VoeSb9OmShM0fPTtJzr6Yc1CWdia77H0K+sQOxX1wh2mKuLv6NaQ3 TxEsZ2CQArWjHrqSkDdHXhqm7EqzelKnLTLVjXheuBrNjjQGBPfHR+Ky5PZ53+xm0WFG ddH3MfnL6WZ/gsTejKTF04xEqEIojr+BlnVsxZtyWvWm+Q4XUj9tzzownqwkclPtYjKD aVxe7aiEKFwP8dmMzC3yclRuua471ttF3gpyqovtxdrdc+hWKXehnuTH/+esx1jPpiqN NciqxqTTqeSh+C2vvv1wT1jYD/WcIIYOfp4ousL62J4QQgDlsywennGU0nuzMVzDhMv8 RRAw== X-Gm-Message-State: AODbwcDYo5qcFZmSXTEN+BHK32od9CIqEozx80iTs6KgxZfctleV8X+5 23bDgug4vgPkJW9uJ2o= X-Received: by 10.98.245.155 with SMTP id b27mr5073960pfm.181.1495840427218; Fri, 26 May 2017 16:13:47 -0700 (PDT) Original-Received: from [192.168.24.63] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id 187sm3160469pgc.46.2017.05.26.16.13.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2017 16:13:46 -0700 (PDT) In-Reply-To: <58516957-5971-7a1f-a4e2-d276f2881046@cs.ucla.edu> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::236 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:215244 Archived-At: > On May 27, 2017, at 3:42, Paul Eggert wrote: >=20 > On 05/26/2017 07:41 AM, Jean-Christophe Helary wrote: >> 2005-04-14 YAMAMOTO Mitsuharu >>=20 >> * international/mule-cmds.el (set-locale-environment): On Mac = OS, >> use preferences AppleLocale and AppleLanguages, and variable >> mac-system-locale for default locale. On Mac OS Classic, use >> mac-system-coding-system for default coding systems. >> But there is no further references to mac-system-locale in the other = changelogs >=20 > That code was removed here: >=20 > = http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D9e2a2647758db83b49= 0e2993aa31cd4607305a82 >=20 > in a commit dated 2008-07-27 that removed support for Carbon. =46rom = what you say, that part of the 2008 change is making life for macOS = users more difficult, in that they sometimes need to manually set their = language environment instead of having it be deduced automatically from = system settings. Sorry if I got my wording wrong. macOS does not seem to use the LC_ = system to provide locale information to the applications. It uses 2 = variables that are: AppleLanguages: a string list of locale names the user has in her global = preferences (usually just one item, usually a "standard" = (language)_(region) pair. But she can add other locales and set = priorities to provide for applications that offer a localization but not = others. AppleLocale: the string that is the first element of the list. The two variables are set from the GUI based "System Preferences" = application but they probably can be modified from the command line as = well if necessary. > Presumably there is a non-Carbon way to do the equivalent of the old = code, and if you or some other macOS expert would write it, that would = remove this minor glitch in the default Emacs configuration on macOS. That would be great. I'll see if I can grasp the code. > Here's a tip to help you research similar issues in the future: to = find when the string "AppleLocale" was removed from the file = lisp/international/mule-cmds.el, you can use this shell command: >=20 > git log -S AppleLocale lisp/international/mule-cmds.el That's extremely helpful. Thank you *very* much. Jean-Christophe=20=