View previous topic :: View next topic |
Author |
Message |
opafix n00b
Joined: 09 Sep 2018 Posts: 10
|
Posted: Tue Nov 20, 2018 10:38 am Post subject: locales keep resetting to POSIX |
|
|
I'm trying to set my locale to en_GB.UTF-8.
I have followed the wiki page (https://wiki.gentoo.org/wiki/Localization/Guide#LINGUAS) on setting it up, and have the following settings:
/etc/locale.gen
Code: |
C
POSIX
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
|
# eselect locale list:
Code: |
Available targets for the LANG variable:
[1] C
[2] POSIX
[3] en_GB
[4] en_GB.iso88591
[5] en_GB.utf8 *
[ ] (free form)
|
but when I run
$ locale
I get:
Code: |
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=
|
I have done "eselect locale set 5," "env-update," "source /etc/profile," ". /etc/profile," "locale-gen" ad infinitum.
Exporting LANG as a shell variable does change it, but the encoding of characters doesn't change.
What gives?
Thanks in advance |
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Tue Nov 20, 2018 12:29 pm Post subject: |
|
|
Hello.
If running systemd, there must be an additional step with localectl (at least).
++
Gi) |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Tue Nov 20, 2018 12:44 pm Post subject: |
|
|
1) Do you use OpenRC or Systemd?
2) Please show us the contents of the file: /etc/env.d/02locale
3) Do you (re-)set LC_*, LANG, or LANGUAGE in /etc/profile, ~/.profile, ~/.bash_profile, ~/.bashrc? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|