You are not logged in.

#1 2024-10-26 17:38:54

eugeniob
Member
Registered: 2023-07-01
Posts: 10

[SOLVED] LANG overwrite

LANG env variable is overwritten, and I don't understand which script/program overwrites it.
The problem is: if I run thunderbird from GUI, it does not allow me to set "Italian date format" (i.e. dd/mm/yyyy), only en_US format (i.e. mm/dd/yyyy), the same if  I run thunderbird from CLI.
If I unset LANG from CLI and run thunderbird from CLI, I can set "Italian date format".
In both case, system setting is properly configured, and date is shown as expected ("Italian date format")

The content of locale.conf is

 cat /etc/locale.conf 
LANG=it_IT.UTF-8
LC_TIME=it_IT.UTF-8

with show environment I get

 systemctl show-environment | grep LANG
LANG=it_IT.UTF-8 

from CLI, the output of locale command is

locale

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTC-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTC-8"
LC_TIME=it_IT.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER="en_US.UTC-8"
LC_NAME="en_US.UTC-8"
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION="en_US.UTC-8"
LC_ALL=
 

In the following directories/files LANG is not set

 /etc/profile.d
~/.config
~/.bash.rc 

Does someone have some hint?
Thanks

Last edited by eugeniob (2024-10-27 11:57:27)

Offline

#2 2024-10-26 19:31:05

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: [SOLVED] LANG overwrite

https://wiki.archlinux.org/title/KDE#Pl … e_settings ?

locale: Cannot set LC_ALL to default locale: No such file or directory

The bogus value here is LC_ALL, though. This was you in that shell as some sort of hail-mary?

Offline

#3 2024-10-27 11:30:39

eugeniob
Member
Registered: 2023-07-01
Posts: 10

Re: [SOLVED] LANG overwrite

Yes, that is the output of locale command (I have just edited it to make more clear).
I didn't set LC_ALL because I read that will overwrite all the other LC_* env variable.

[UPDATE]
Many thanks,
With the link you posted, I changed the value and both time and LC_ALL problems have been solved

Last edited by eugeniob (2024-10-27 11:57:00)

Offline

Board footer

Powered by FluxBB