So, this does appear to be a bug in Mutt.  After I ran the demo in the
other thread, I started Mutt with Korean time set in the same
terminal, and it still shows me English.

On Fri, Aug 19, 2016 at 12:06:47PM -0500, Derek Martin wrote:
> On Fri, Aug 19, 2016 at 10:08:03AM +0200, Matthias Apitz wrote:
> > El día Friday, August 19, 2016 a las 06:00:46PM +1000, Erik Christiansen 
> > escribió:
> > 
> > > On 19.08.16 07:39, Matthias Apitz wrote:
> > > > If I unset it in ~/.muttrc and run
> > > > 
> > > > $ LANG=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 mutt
> > > > 
> > > > it gives the month name as 'Aug', which is not correct.
> > > 
> > > Try:
> > > 
> > > $ export LANG=...
> > 
> > $ export LANG=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 
> > $ env | egrep 'LANG|LC_'
> > LC_ALL=es_ES.UTF-8
> > LC_COLLATE=C
> > LANG=es_ES.UTF-8
> > LC_TIME=es_ES.UTF-8
> > $ mutt
> > 
> > gives 'Aug' too as month name;
> > 
> >     matthias
> 
> Don't set LC_ALL or LC_TIME.  Setting LANG is all you need to do, and
> it's all you should do, unless you need those settings to be different
> for some reason.
> 
> Also, rather than trying to pick out the environment variables from
> env output, just run locale:
> 
> $ locale
> LANG=en_US.UTF-8
> LANGUAGE=en_US:en
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC=en_US.UTF-8
> LC_TIME=en_US.UTF-8
> LC_COLLATE=C
> LC_MONETARY=en_US.UTF-8
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER=en_US.UTF-8
> LC_NAME=en_US.UTF-8
> LC_ADDRESS=en_US.UTF-8
> LC_TELEPHONE=en_US.UTF-8
> LC_MEASUREMENT=en_US.UTF-8
> LC_IDENTIFICATION=en_US.UTF-8
> LC_ALL=
> 
> The values in quotes in the output are inherited from your setting
> from LANG, whereas those without quotes have been set explicitly.
> Generally, you want ALL of those to be in quotes, other than LANG
> itself.
> 
> Interestingly, on this Ubuntu system, it appears something is setting
> a bunch of those for me.  There's no good reason for it to do this,
> and I consider that a bug.
> 
> At any rate, check your full locale, and look for mismatches.
> LC_COLLATE should not affect the date output; that should be
> controlled by LC_TIME, which again, ideally should be inherited from
> LANG.
> 
> On your system, is mutt a script that sources your login files, or
> something of the sort?  Or do you still have another muttrc file that
> is getting sourced from your main .muttrc, and setting mutt's locale
> incorrectly?
> 
> Because if you've set LANG correctly, it makes zero sense that you're
> getting the wrong output.  SOMETHING is misconfigured.
> 
> -- 
> Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
> -=-=-=-=-
> This message is posted from an invalid address.  Replying to it will result in
> undeliverable mail due to spam prevention.  Sorry for the inconvenience.
> 



-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.

Attachment: pgpd7EsydBFmm.pgp
Description: PGP signature

Reply via email to