all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: L10N & LC variables
Date: Fri, 26 May 2017 17:53:33 +0300	[thread overview]
Message-ID: <83a85zk6tu.fsf@gnu.org> (raw)
In-Reply-To: <DF383ABC-BD9E-42F7-BF0C-47B320BE614B@gmail.com> (message from Jean-Christophe Helary on Fri, 26 May 2017 23:41:17 +0900)

> From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
> Date: Fri, 26 May 2017 23:41:17 +0900
> 
> 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=UTF-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=UTF-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  <mituharu@math.s.chiba-u.ac.jp>
> > 
> > 	* 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?

I don't know, but doesn't current-language-environment work on macOS
and give you what you want?  If not, why not?



  reply	other threads:[~2017-05-26 14:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com>
2017-05-26 14:41 ` L10N & LC variables Jean-Christophe Helary
2017-05-26 14:53   ` Eli Zaretskii [this message]
2017-05-26 15:10     ` Jean-Christophe Helary
2017-05-26 15:20       ` Eli Zaretskii
2017-05-26 15:54         ` Jean-Christophe Helary
2017-05-26 17:39           ` Eli Zaretskii
2017-05-26 23:22             ` Jean-Christophe Helary
2017-05-26 18:42   ` Paul Eggert
2017-05-26 23:13     ` Jean-Christophe Helary
2017-05-27  0:38       ` Alan Third
2017-05-27  0:54         ` Jean-Christophe Helary
2017-05-27  7:33           ` Alan Third
2017-05-27  7:59             ` Eli Zaretskii
2017-05-27  9:51               ` Jean-Christophe Helary
2017-05-27  0:34     ` Jean-Christophe Helary
2017-05-27  5:25   ` Anders Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a85zk6tu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jean.christophe.helary@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.