Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locales keep resetting to POSIX
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
opafix
n00b
n00b


Joined: 09 Sep 2018
Posts: 10

PostPosted: Tue Nov 20, 2018 10:38 am    Post subject: locales keep resetting to POSIX Reply with quote

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
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Tue Nov 20, 2018 12:29 pm    Post subject: Reply with quote

Hello.

If running systemd, there must be an additional step with localectl (at least).

++
Gi)
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Nov 20, 2018 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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