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: L10N & LC variables Date: Fri, 26 May 2017 23:41:17 +0900 Message-ID: References: <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com> 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 1495809748 27311 195.159.176.226 (26 May 2017 14:42:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 14:42:28 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 26 16:42:23 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 1dEGRa-0006tA-LW for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 16:42:22 +0200 Original-Received: from localhost ([::1]:37115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEGRd-0003Q8-0B for ged-emacs-devel@m.gmane.org; Fri, 26 May 2017 10:42:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEGQe-0002Uj-OA for emacs-devel@gnu.org; Fri, 26 May 2017 10:41:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEGQb-0000Mi-Km for emacs-devel@gnu.org; Fri, 26 May 2017 10:41:24 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:33187) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEGQb-0000Kd-DO for emacs-devel@gnu.org; Fri, 26 May 2017 10:41:21 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id e193so13637332pfh.0 for ; Fri, 26 May 2017 07:41:21 -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:message-id :references:to:date; bh=0tPtbQi5hksfoQbMEaqflg19c8ZpaarRvCDa+sXuZb8=; b=jzumeyWF8+d37LYwZJfe0ChRMhR7Ix+EX67XUwZ2hAigxuc56q2wc7b6P7NK7f0QbG Qf9Wqk8PceCDvmsTqDzd5KhFWgRea64vu2n2Exmuu7OA4MC63/qPZYhrsX+dNxbG9CRa Ws7PXHvFj3MCtWPHBdPEQ2BKASjk7VdftrR6BJcDbiQaO4PEDT6EKKdEGJVPoLcSDkdf icddHJ5vOI5V7haHjdasynq93btz5vNxGK72ntgEwi7vsuzh0k1q9MwFCkJ4g1ry0taO Z3XDh1JLdMzj+uTbaZvgWLChv9WuyJUfBxesHdUVbOS6jQzhTZ246sMdYO/dwv9nSJtL IS5w== 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:message-id:references:to:date; bh=0tPtbQi5hksfoQbMEaqflg19c8ZpaarRvCDa+sXuZb8=; b=lgKPRh6eYWv39L2n8duk6Zbb4r5j4y4phFHxcsHGFoCqmJj5hTIX1Ij/uP90749is3 L0IBiklmK3DV6pSC7xCXlQ+1Zc4Xk40MlW6S8YyWYlInNL4f0SP+vbRmjI47Rf5PrWUJ PegIDs8z/o1G61KVCcqcP14R3DNGEgI2uMhWlixUMtA3sQHSN+6GO8WKj23BnQZHtDNN 7+iQ+E/F4aMrWpBDRI+IM2Arn+hnWh9uKYPmEiJpqIYi8EeONTEnuwGNyQJ+UtPeaCZ8 O2WceG8mIGLNuo/D6EPPgZ4f/uUwqfxLSNT5/b3iEabnkAvWsmVgHHzeE2M1FP7QN2m5 Jrew== X-Gm-Message-State: AODbwcCCvMY68d6M4XCbRQSyeytxiSpqrl+kmBTCZw+8L0gq6/QrHWKb aefhDw+M/SWdk2O4JZE= X-Received: by 10.99.156.26 with SMTP id f26mr2937704pge.86.1495809680232; Fri, 26 May 2017 07:41:20 -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 g86sm2699526pfe.116.2017.05.26.07.41.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 May 2017 07:41:19 -0700 (PDT) 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::22d 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:215218 Archived-At: The first think we need for l10n, is have emacs be aware of the = linguistic environment in which it is running (or eventually the = language environment that it uses internally, which is much easier). I = am not using gnu/linux so I am not sure how to do that there (although = it does look relatively straightforward). On Mac, the locale variables don't seem to be defined the way they are = on gnu/linux. Here I only have "LC_CTYPE=3DUTF-8" and no other LC = variable. I've checked that yesterday and it looks like there is a = system "AppleLocale" variable that supersedes the LC variables and that = returns the language selected in the global system preferences. There is = also an "AppleLanguages" that returns *all* the languages added by the = user in that same global system preference. Here is what I get for my system: > env | grep LC_ LC_CTYPE=3DUTF-8 > defaults read -g AppleLocale en_JP > defaults read -g AppleLanguages ( "en-JP", "fr-JP", "ja-JP" ) I've checked whether that variable was used in Emacs and I found = reference to it in Changelog.12. > 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 and it looks like mule-cmds.el does not define it and there = does not seem to be any place in the Emacs code that refers to = AppleLocale or AppleLanguages anymore. So, is that something that's been removed? Jean-Christophe=20=