https://bugs.kde.org/show_bug.cgi?id=464983

            Bug ID: 464983
           Summary: "doesn't support auto locale generation on non-glibc
                    systems" on Arch Linux which clearly uses glibc
    Classification: Applications
           Product: systemsettings
           Version: 5.26.5
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_regionandlang
          Assignee: plasma-b...@kde.org
          Reporter: lakesarch...@outlook.com
                CC: hanyo...@protonmail.com
  Target Milestone: ---

Created attachment 155761
  --> https://bugs.kde.org/attachment.cgi?id=155761&action=edit
Locale has been configured, but this KCM currently does not support auto locale
generation on non-glibc systems, please refer to your distribution's manual to
install fonts and generate locales

SUMMARY
Since this month (or the previous month maybe?) there are complaints on Arch
Linux CN's BBSes that "they cannot configure the locale to Chinese", and they
mentioned this error. Though the specific post is a misinterpretation, this
error still doesn't make sense at all (because Arch Linux do use glibc). I
tried a fresh install of Arch Linux and the problem remains.

Along with the above phenomenon, because under TTY, Chinese cannot be
displayed, basically all users write `LANG=en_US.UTF-8` in `/etc/locale.conf`
and specify Chinese locale in their home directory or through the KDE system
setting. However in the above fresh install, after setting locale to Chinese in
KDE settings, in the generated file `~/.config/plasma-localerc`, the `LANG=`
under `[Formats]` section isn't Chinese (my case `zh_CN.UTF-8`) but still
English (`en_US.UTF-8`) while `LANGUAGE=` under `[Translations]` has `zh-CN` as
the first language, causing the locale setting to show selected "English"
outside the advanced language selection page but inside the page Chinese is
preferred, also causing all formats and fonts to behave abnormal (for font,
it's using Japanese font instead of Chinese font).

STEPS TO REPRODUCE
1. Fresh install an Arch Linux without `testing` repositories (and its alke)
enabled, install `plasma`, `kde-applications-meta`, `noto-fonts-cjk` and
packages needed, create a user under `wheel` group, enable sudoers for them,
uncomment languages (Chinese and English) `/etc/locale.gen` , specify
`LANG=en_US.UTF-8` in `/etc/locale.conf`, run `locale-gen`, enable sddm, reboot
2. Login, add Chinese (Simplified) (`简体中文`) as the first language in system
settings
3. Reboot

OBSERVED RESULT
After setting the language, it complains "Locale has been configured, but this
KCM currently does not support auto locale generation on non-glibc systems,
please refer to your distribution's manual to install fonts and generate
locales" and prompts "Changes will take effect the next time you log in." Then
after reboot, though it changes to Chinese after logging in, the format and
interface font isn't Chinese at all. Opening `systemsettings` through console
doesn't provide any errors related to setting locale.

EXPECTED RESULT
After setting the language, it prompts "Changes will take effect the next time
you log in.", and after reboot, the format, UI language and font are all as
preferred.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (rolling) / KDE Plasma 5.26.5
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to