Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
locale problems and errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Gladdle
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 267
Location: Cleebronn, Germany

PostPosted: Sun Mar 17, 2019 5:58 pm    Post subject: locale problems and errors Reply with quote

My multilib x64 Gentoo got an error and i can't find the solution - and also i didn't understood the exact problem. Every time i use emerge there are two row's:
Code:
setlocale: unsupported locale setting
setlocale: unsupported locale setting

"genlop -t" is more specific:
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "",
        LC_LOCCATE = "C",
        LANG = "de_DE@euro"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

My "/etc/locale.gen" contains the following (uncommented) rows:
Code:
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP

Here is the output from "eselect locale list":
Code:
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_COLLATE to default locale: No such file or directory
Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   de_DE.utf8 *
  [4]   en_US.utf8
  [5]   ja_JP.eucjp
  [6]   ja_JP.utf8
  [ ]   (free form)

If i am right, that causes the file "/etc/env.d/02locale":
Code:
# Configuration file for eselect
# This file has been automatically generated.
LANG="de_DE.utf8"
LC_ALL=""

Here is the output from "locale -a":
Code:
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_COLLATE to default locale: No such file or directory
C
POSIX
de_DE.utf8
en_US.utf8
ja_JP.eucjp
ja_JP.utf8

This familiar thread doesn't help me, the google search results wasn't helpful, too. I also did a "locale-gen" and a reboot, but t didn't help. Someone got an idea, what i did wrong?
_________________
Meine Gentoo Linux Konfiguration: Notebook (ACER Aspire 9920G)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21334
Location: here

PostPosted: Sun Mar 17, 2019 6:03 pm    Post subject: Reply with quote

And what return locale command (without -a option).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gladdle
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 267
Location: Cleebronn, Germany

PostPosted: Sun Mar 17, 2019 6:18 pm    Post subject: Reply with quote

"locale" brings this output:
Code:
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=de_DE@euro
LC_CTYPE="de_DE@euro"
LC_NUMERIC="de_DE@euro"
LC_TIME="de_DE@euro"
LC_COLLATE="de_DE@euro"
LC_MONETARY="de_DE@euro"
LC_MESSAGES="de_DE@euro"
LC_PAPER="de_DE@euro"
LC_NAME="de_DE@euro"
LC_ADDRESS="de_DE@euro"
LC_TELEPHONE="de_DE@euro"
LC_MEASUREMENT="de_DE@euro"
LC_IDENTIFICATION="de_DE@euro"
LC_ALL=


I have no idea why there is "No such file or directory" for LC_CTYPE, LC_MESSAGES and LC_ALL. If i edit the "/etc/env.d/02locale" it's the wrong way, isn't it?
_________________
Meine Gentoo Linux Konfiguration: Notebook (ACER Aspire 9920G)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21334
Location: here

PostPosted: Sun Mar 17, 2019 6:37 pm    Post subject: Reply with quote

The problem that you, or some other program, set de_DE@euro but you don't have this locale
Code:
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP

You have to figure out who set the locale de_DE@euro (maybe DE?)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Gladdle
Apprentice
Apprentice


Joined: 27 Jul 2008
Posts: 267
Location: Cleebronn, Germany

PostPosted: Sun Mar 17, 2019 7:00 pm    Post subject: Reply with quote

I am such a fool, i thank you so much for your help! in the file "/root/.bashrc" was the follow row's:
Code:
export LANG="de_DE@euro"
export LC_LOCCATE="C"

I have delete them, now i will restart!
_________________
Meine Gentoo Linux Konfiguration: Notebook (ACER Aspire 9920G)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum