Hi!

I use Fedora 41 KDE and my first and default language is English (primary) and 
my second language (secondary) is German. However, the Bash shell wrongfully 
uses the secondary language:

> bash --version
> GNU bash, Version 5.2.32(1)-release (x86_64-redhat-linux-gnu)
> Copyright (C) 2022 Free Software Foundation, Inc.
> Lizenz GPLv3+: GNU GPL Version 3 oder jünger 
> <http://gnu.org/licenses/gpl.html>
>
> Dies ist freie Software. Sie darf verändert und verteilt werden.
> Es wird keine Garantie gewährt, soweit das Gesetz es zulässt.

It seems that the Bash shell suffers from a locale bug which Nate from KDE has 
described as follows:

> The problem seems to be that many GTK apps don't explicitly name or alias 
> their English locale as "en" or "en_US", but instead make it the default 
> locale, which is "C".  For these apps if you have "LANGUAGE=en_US" it will 
> try to find the en_US locale, fail, and fallback to the default locale, C, 
> which just usually happens to be English, so it *seems* to work.  But if you 
> have "LANGUAGE=en_US:zh_CN" it tries to find en_US, fails, moves onto zh_CN, 
> finds it, and so displays Chinese.  This can be verified by using 
> "LANGUAGE=C:zh_CN", which for most GTK apps should cause them to display 
> English.  Or at least *mostly* English: for Evolution it causes some 
> fields/labels to be in Chinese.

https://bugs.kde.org/show_bug.cgi?id=192019#c47

--Kaulkwappe

###

> env | grep LANG
LANGUAGE=en_US:en_US:en_US:de
LANG=en_US.UTF-8

> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


Reply via email to