mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] ptxdist locale problems
Date: Thu, 11 Feb 2016 08:52:57 +0100	[thread overview]
Message-ID: <20160211075257.GB14137@pengutronix.de> (raw)
In-Reply-To: <20160202192714.GA2820@archie.tuxnet.lan>

On Tue, Feb 02, 2016 at 08:27:14PM +0100, Clemens Gruber wrote:
> On Tue, Feb 02, 2016 at 08:24:12PM +0100, Clemens Gruber wrote:
> > On Mon, Feb 01, 2016 at 04:36:39PM +0100, Michael Olbrich wrote:
> > > With a corresponding /etc/locale.conf I see
> > > System Locale: LANG=en_US.utf8
> > 
> > Hm, now localectl does show the following:
> > System Locale: LANG=en_US.utf8
> > 
> > But, the "locale" program still shows:
> > LANG=
> > LC_CTYPE="POSIX"
> > LC_NUMERIC="POSIX"
> > LC_TIME="POSIX"
> > LC_COLLATE="POSIX"
> > LC_MONETARY="POSIX"
> > LC_MESSAGES="POSIX"
> > LC_PAPER="POSIX"
> > LC_NAME="POSIX"
> > LC_ADDRESS="POSIX"
> > LC_TELEPHONE="POSIX"
> > LC_MEASUREMENT="POSIX"
> > LC_IDENTIFICATION="POSIX"
> > LC_ALL=
> > 
> > > What does "localectl list-locales" tell you?
> > 
> > It shows: en_US.utf8
> > 
> > So ptxdist did generate the locale files correctly, but the
> > /etc/locale.conf entry does not seem to have any effect on the output of
> > "locale". Is this expected and what can I do about it?
> > Shouldn't systemd-localed also set the environment variables?
> > 
> > Michael, does your machine show LANG=en_US.utf8 in the output of the
> > "locale" command?
> > 
> > Thanks for your help.
> > Clemens
> 
> If I try to connect to the machine with mosh, I get:
> "The locale requested by LC_CTYPE=en_US.utf8 isn't available here.
> Running `locale-gen en_US.utf8' may be necessary.
> 
> mosh-server needs a UTF-8 native locale to run."

"systemctl show-environment" contains the correct 'LANG'. However, LANG is
not set in the shell. Maybe we should add something like this to
/etc/profile.d/systemdd.sh:

if [ -s /etc/locale.conf ]; then
	. /etc/locale.conf
	export LANG
fi

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2016-02-11  7:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-30 18:03 Clemens Gruber
2016-02-01 15:36 ` Michael Olbrich
2016-02-02 19:24   ` Clemens Gruber
2016-02-02 19:27     ` Clemens Gruber
2016-02-11  7:52       ` Michael Olbrich [this message]

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=20160211075257.GB14137@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox