You are not logged in.

#1 2022-10-16 15:40:09

ryuu_risto
Member
Registered: 2022-10-16
Posts: 6

locale-gen fails to execute after system update on two machines

After updating my system on two separate machines while debugging a locale issue, I can no longer execute locale-gen due to following error:

Generating locales...
  en_GB.UTF-8... done
  en_US.UTF-8... done
  pl_PL.UTF-8... done
  Inherit.Language.UTF-8 UTF-8...Try `localedef --help' or `localedef --usage' for more information.

I've never seen such error before, and google cannot find it mentioned anywhere.

Offline

#2 2022-10-16 15:45:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: locale-gen fails to execute after system update on two machines

What does `grep -v '^#' /etc/locale.gen` show?

Offline

#3 2022-10-16 16:13:15

ryuu_risto
Member
Registered: 2022-10-16
Posts: 6

Re: locale-gen fails to execute after system update on two machines

Scimmia wrote:

What does `grep -v '^#' /etc/locale.gen` show?

Huh

Turns out plasma has added some odd lines to that file:

# generated by KDE Plasma Region & Language KCM
Inherit Language.UTF-8 UTF-8
Inherit Language.UTF-8 UTF-8
Inherit Language.UTF-8 UTF-8
Inherit Language.UTF-8 UTF-8
Inherit Language.UTF-8 UTF-8
Inherit Language.UTF-8 UTF-8

I assume that these somehow were supposed to work, but for some reason don't?

Offline

#4 2022-10-16 19:02:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: locale-gen fails to execute after system update on two machines

Just get rid of them, then ignore plasma's locale settings completely.

Offline

Board footer

Powered by FluxBB