You are not logged in.
Pages: 1
I posted a similar query earlier, but it seems like there is some deeper problem in my configuration.
rep ~ $ locale
LANG=en_IN.US-ASCII
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
rep ~ $ cat /etc/locale.conf
LANG=en_IN.utf8
LC_TIME=en_IN.utf8
rep ~ $ localectl list-locales
en_IN
en_IN.utf8
en_US
en_US.iso88591
en_US.utf8
rep ~ $I followed the steps on the Arch wiki to generate and set the locale, but after a reboot, the locale goes back to "en_IN.US-ASCII"
What gives?
Thanks in advance
Offline
there is at least 2 locales:
* System-wide locale is defined in /etc/locale.conf
* User locale is defined in .config/locale.conf
In my case this files look like this:
$ cat /etc/locale.conf
LANG=en_US.UTF-8
$ cat .config/locale.conf
LANG=ru_RU.UTF-8* Addition to make clear
All locales are enabled for generation in file /etc/locale.gen:
$ grep -v '^#.*' /etc/locale.gen
en_US.UTF-8 UTF-8
ru_RU.UTF-8 UTF-8And generated with locale-gen command
Last edited by sincomil (2018-05-23 11:46:03)
Offline
there is at least 2 locales:
* System-wide locale is defined in /etc/locale.conf
* User locale is defined in .config/locale.confIn my case this files look like this:
$ cat /etc/locale.conf LANG=en_US.UTF-8 $ cat .config/locale.conf LANG=ru_RU.UTF-8
I don't have any user specific locale settings.
rep ~ $ cat .config/locale.conf
cat: .config/locale.conf: No such file or directory
rep ~ $Offline
If you do not using user-specific locale then you are using system-wide, thats all. So you need to set system-wide locale to make it change for your user. But best practice is using English-based locale as system-wide and users native language locale as user-specific to make possible all GUI and TUI applications talk on users native language also it accomodates displaying dates and currencies.
Last edited by sincomil (2018-05-23 11:53:52)
Offline
You environment might also be setting these, what are you starting? Which desktop/UI are you using?
Offline
I'm using KDE/Plasma 5
I cant find any place where that en_IN.US-ASCII could be coming from
Offline
Last edited by sincomil (2018-05-23 12:23:21)
Offline
So KDE's locale settings don't have anything that might point to this? FWIW run a
grep -R 'en_IN.US-ASCII' ~to dig through your home for that string (maybe expand that to /etc if you've adjusted something there).
Offline
Why is your region "Default (C)"??
tr '\0' '\n' < /proc/`pidof systemd`/environ | grep LANG
tr '\0' '\n' < /proc/`pidof plasmashell`/environ | grep LANG
tr '\0' '\n' < /proc/$$/environ | grep LANGOffline
I noticed that I had an LC_ALL="C" for whatever reason in my .bashrc - cant recall why I would ever have added that!
I removed that but
rep ~ $ tr '\0' '\n' < /proc/`pidof systemd`/environ | grep LANG
LANG=en_IN.utf8
rep ~ $ tr '\0' '\n' < /proc/`pidof plasmashell`/environ | grep LANG
LANG=en_IN.US-ASCII
LANGUAGE=en_US:en_GB
rep ~ $ tr '\0' '\n' < /proc/$$/environ | grep LANGLooks like plasmashell is getting that from somewhere!
Offline
Check KDE's locale settings or the startup script settings and/or run my command it should uncover most/all relevant locations.
Offline
Also "ps -o ppid -p `pidof plasmashell`" will print the PID of plasmas parenting process, you can walk up the tree to see whether plasma itself inherits this from somewhere.
Offline
Pages: 1