You are not logged in.

#1 2021-08-18 18:48:51

senaex
Member
Registered: 2021-08-18
Posts: 7

cannot set various locales

Hey, this is my first ever post on this forum, so if I'm doing something wrong in my explanation, feel free to let me know.

So, many applications on my still rather new arch install are having locale issues, for example perl.

the error:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US.UTF-8",
        LC_ALL = "de_US.UTF-8",
        LC_ADDRESS = "en_US.UTF-8",
        LC_CTYPE = "en_US.UTF-8",
        LC_IDENTIFICATION = "en_US.UTF-8",
        LC_MEASUREMENT = "en_US.UTF-8",
        LC_MESSAGES = "en_US.UTF-8",
        LC_MONETARY = "en_US.UTF-8",
        LC_NAME = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LC_PAPER = "en_US.UTF-8",
        LC_TELEPHONE = "en_US.UTF-8",
        LC_TIME = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

output of locale:

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


What I already tried:
setting locale in locale.gen
running locale-gen, which gave a weird error but still kind of worked:

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_US.UTF-8)
Generating locales...
  en_US.UTF-8... done
Generation complete.

I would really appreciate every help :)

Offline

#2 2021-08-18 19:02:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,310

Re: cannot set various locales

Please wrap the outputs in [ code ] code tags[ /code ] without the spaces.

de_US is not a valid locale, this weird constellation sometimes happens with Plasma's regional settings sometime, go into system settings and ensure you have en_US selected both for the application language and the regional settings. However even a wrong setting there shouldn't unconditionally set LC_ALL  either... what's your

cat /etc/locale.conf

or did you ever set LC_ALL=de_US.UTF-8 in some config file elsewhere?

Offline

#3 2021-08-18 19:03:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,366

Re: cannot set various locales

Generating locales...
  en_US.UTF-8... done
Generation complete.
LC_ALL: cannot change locale (de_US.UTF-8)

de_DE?
And you need to uncomment it in /etc/locale.gen

Edit: the anime ninjagirl. again. smile

Last edited by seth (2021-08-18 19:03:55)

Offline

#4 2021-08-18 19:09:46

senaex
Member
Registered: 2021-08-18
Posts: 7

Re: cannot set various locales

So after i did the locale-gen thing again, removed some export LC_ALL=... in my zshrc and rebooted, it magically started working again smile

Sorry to waste you time here and thanks for the tip with the code smile

Offline

Board footer

Powered by FluxBB