You are not logged in.

#1 2017-08-04 00:41:59

afaye
Member
From: London
Registered: 2017-08-03
Posts: 9

[SOLVED] Invalid locale after locale-gen?

Hello,

Please take a look at the following as per installation documentation:

> cat /etc/locale.gen
en_GB.UTF-8 UTF-8
> locale-gen
Generating locales...
  en_GB.UTF-8... done
Generation complete.
> localedef --list-archive
en_GB.utf8

I think this locale name is incorrect?

en_GB.utf8

I thought it is suppose to be:

en_GB.UTF-8

When I keep going:

> unset LANG
> echo $LANG

> cat /etc/locale.conf
LANG=en-GB.UTF-8
> source /etc/profile.d/locale.sh
> locale
LANG=en_GB.UTF-8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATION=
LC_ALL=

All LC_ environment variables are empty.

When I did it on Virtual Box two weeks ago (have removed Windows/Virtual Box and trying to install Arch straight to my laptop), "LC_" environment variables had en_GB.UTF-8 value, hence I think this is incorrect for locale settings.

Did I do something wrong here?

Last edited by afaye (2017-08-05 13:01:23)

Offline

#2 2017-08-04 01:12:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,550

Re: [SOLVED] Invalid locale after locale-gen?

I think you're just running into this: https://bugs.archlinux.org/task/54988

Offline

#3 2017-08-04 02:04:53

afaye
Member
From: London
Registered: 2017-08-03
Posts: 9

Re: [SOLVED] Invalid locale after locale-gen?

Thanks Scimmia for pointing that out.
From reading that it seems systemd 234 may be the issue.

What is curious though, is that when I try to set locale on archiso before arch-chroot, it worked (although doesn't actually set locale to where I need it)
When I try to set locale after arch-chroot, it didn't work (as I have described in this post).
May be it is because I don't really know how to test locale settings properly.
I will look at locale a bit more and see if, when I unset LANG= before arch-chroot, I wonder if that will help?

(Just trashed my partition, have to reinstall before I try other things)

Last edited by afaye (2017-08-04 02:10:23)

Offline

#4 2017-08-05 12:51:06

afaye
Member
From: London
Registered: 2017-08-03
Posts: 9

Re: [SOLVED] Invalid locale after locale-gen?

There was an update to systemd that might have solved this issue.

When I had the locale issue, it was running systemd 234.11-3
There was an update for systemd 234.11-4 and now it appears ok as far as I can tell.

Hence the resolution is that systemd is updated to 234.11-4

Offline

#5 2017-08-05 14:47:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,550

Re: [SOLVED] Invalid locale after locale-gen?

234.11-4 would have nothing at all to do with this. Probably coincidence.

Offline

#6 2017-08-06 19:00:34

afaye
Member
From: London
Registered: 2017-08-03
Posts: 9

Re: [SOLVED] Invalid locale after locale-gen?

Thanks Scimmia for pointing that out.

Now that you mention it, *before* I arch-chroot, I also "unset LANG" environment variable ...
It is not exactly scientific, but ... perhaps if others have similar issue, they could also try that. smile

Last edited by afaye (2017-08-06 19:02:14)

Offline

Board footer

Powered by FluxBB