On Thursday, January 13, 2022 5:09:10 PM CET Mattia Verga wrote:
By comparing the `printenv` output in linux terminal and in konsole
see that both have `LANG=it_IT.UTF-8` (which is correct), but konsole
adds `LANGUAGE=it:en_US` which seems a strange value.
LANGUAGE is a variable that can specify a list of prefered languages, with `:` as the
separator. See the documentation here in the manual of gettext:
I now have to find out what KDE setting is injecting the LANGUAGE
variable... there's nothing in bashrc or bash_profile, so it may be some
In KDE System Settings, section "Regional Settings/Language", you probably have
specified that you prefer "italiano" and then "American English". That
is wky konsole sets that variable.
Unset the LANGUAGE variable make the script run fine.
As documented, LANGUAGE has a precedence over LANG or LC_* variables. See also:
By unsetting it, you let the code fallback to the other variables.