unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: L10N & LC variables
Date: Sat, 27 May 2017 08:33:59 +0100	[thread overview]
Message-ID: <20170527073359.GA67815@breton.holly.idiocy.org> (raw)
In-Reply-To: <DE5FC342-5A6B-4411-A0C3-A476F9EA47F9@gmail.com>

On Sat, May 27, 2017 at 09:54:58AM +0900, Jean-Christophe Helary wrote:
> > On May 27, 2017, at 9:38, Alan Third <alan@idiocy.org> wrote:
> > 
> >> Sorry if I got my wording wrong. macOS does not seem to use the LC_
> >> system to provide locale information to the applications.
> > 
> > I’m not sure if it’s relevant to what you’re looking at, but
> > ns_init_locale in nsterm.m sets the LANG environment variable from the
> > macOS locale in an attempt to emulate the setup you get from running
> > Emacs from the terminal.
> 
> Thank you Alan.
> 
> Looking at the definition, it seems to be what I'm looking for. Why
> is that variable not used in other parts of the code ? It does not
> seem to be accessed at all...

LANG is used in set-locale-environment in mule-cmds.el, but I don’t
know what is set using it.

I know almost nothing about locales in emacs. The main motivation for
setting LANG on macOS was so that external commands would be given the
correct locale, eg. spell checkers.

Would it be worth creating a function available from lisp that returns
system locale information?
-- 
Alan Third



  reply	other threads:[~2017-05-27  7:33 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20170527073359.GA67815@breton.holly.idiocy.org \
    --to=alan@idiocy.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).