emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: L10N & LC variables


From: Alan Third
Subject: Re: L10N & LC variables
Date: Sat, 27 May 2017 08:33:59 +0100
User-agent: Mutt/1.7.2 (2016-11-26)

On Sat, May 27, 2017 at 09:54:58AM +0900, Jean-Christophe Helary wrote:
> > On May 27, 2017, at 9:38, Alan Third <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]