Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[S]LC_ALL is set to a locale with a charmap other than UTF-8
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
kalleda
n00b
n00b


Joined: 26 Sep 2014
Posts: 14

PostPosted: Fri Sep 26, 2014 4:53 pm    Post subject: [S]LC_ALL is set to a locale with a charmap other than UTF-8 Reply with quote

Hallo,

seit geraumer Zeit bekomme ich beim emergen von Paketen, welche eine Abhängigkeit von Python haben, folgende Warnung:

Code:
LC_ALL is set to a locale with a charmap other than UTF-8.
This may trigger build failures in some python packages.


Leider konnte ich bisher hierfür nicht mal einen Lösungsansatz finden, trotz intensiver Suche. Hat noch jemand dieses Problem?

Hier mal noch einige meiner Einstellungen:

Code:

linuxpc ~ # locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=de_DE.UTF-8


Code:

linuxpc ~ # locale -a
C
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
deutsch
en_US
en_US.iso88591
en_US.utf8
german
POSIX


Code:
linuxpc ~ # cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.UTF-8 UTF-8


Code:
linuxpc ~ # eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   de_DE
  [3]   de_DE@euro
  [4]   de_DE.iso88591
  [5]   de_DE.iso885915@euro
  [6]   de_DE.utf8 *
  [7]   deutsch
  [8]   en_US
  [9]   en_US.iso88591
  [10]  en_US.utf8
  [11]  german
  [12]  POSIX
  [ ]   (free form)


und zum Schluss noch:

Code:
linuxpc ~ # locale charmap
UTF-8


Ich finde im Netz verschiedene Schreibweisen in den Dateien: mal utf8 und mal UTF-8. So richtig brachte mich aber nichts weiter.

Gruß und Danke im Voraus!


Last edited by kalleda on Sun Oct 12, 2014 11:19 am; edited 1 time in total
Back to top
View user's profile Send private message
Jean-Paul
Guru
Guru


Joined: 13 Apr 2009
Posts: 307

PostPosted: Sat Sep 27, 2014 10:08 am    Post subject: Reply with quote

http://wiki.gentoo.org/wiki/Localization/HOWTO/de

LC_ALL sollte nicht gesetzt sein

Quote:
Warning
Using LC_ALL is strongly discouraged as it can't be overridden later on. Please use it only when testing and never set it in a startup file.

_________________
”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Sat Sep 27, 2014 7:40 pm    Post subject: Reply with quote

Sehr richtig. Definiere die Variablen am besten systemweit in /etc/env.d/02locale, z.B. folgendermaßen:
Code:
LANG="de_DE.UTF-8"
LC_COLLATE="C"

und prüfe, ob es daran liegt.

Edit:

Mir fällt erst jetzt auf, dass du enorm viele, redundant anmutende Locales generiert hast. Hier zu entschlacken wäre sicher eine gute Idee.

Auf meinem Desktop hier etwa gibt:
Code:
locale -a

schlicht dies aus:
Code:
C
POSIX
de_DE.utf8
en_US.utf8
ja_JP.utf8

Für jede Sprache jeweils einzig die UTF-8-Kandidaten.
Back to top
View user's profile Send private message
kalleda
n00b
n00b


Joined: 26 Sep 2014
Posts: 14

PostPosted: Sun Sep 28, 2014 11:34 am    Post subject: Reply with quote

Erstmal vielen Dank für eure Antworten!

Habe das jetzt mal wie empfohlen geändert:
Code:
linuxpc ~ # locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE=C
LC_MONETARY="de_DE.utf8"
LC_MESSAGES=de_DE.UTF-8
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=


und
Code:
linuxpc ~ # locale -a
C
POSIX
de_DE.utf8


trotzdem kommt weiterhin
Code:
WARN: configure
LC_ALL is set to a locale with a charmap other than UTF-8.
This may trigger build failures in some python packages.


Irgendwie finde ich nur sehr wenig im Internet hierzu. Hier ist der Patch, welcher für diese Ausgabe wohl zuständig ist. Was der aber genau macht kann ich nicht nachvollziehen:
https://www.mail-archive.com/gentoo-python@lists.gentoo.org/msg00009.html

Gruss
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Mon Sep 29, 2014 6:46 pm    Post subject: Reply with quote

Auffällig ist die nicht einheitliche Schreibweise: nicht konsequent entweder *.utf8 oder aber *.UTF-8, sondern ein Gemisch.

Bei mir sieht das so aus:
Code:
# locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE=C
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=

Auch in /etc/env.d/02locale steht bei mir:
Code:
# cat /etc/env.d/02locale
LANG="de_DE.utf8"
LC_COLLATE="C"

und nicht die Variante mit *.UTF-8 wie im oben von Jean Paul verlinkten sowie zuletzt von mir zitierten Wiki-Eintrag.
Back to top
View user's profile Send private message
kalleda
n00b
n00b


Joined: 26 Sep 2014
Posts: 14

PostPosted: Tue Sep 30, 2014 6:07 pm    Post subject: Reply with quote

Ob beim Aufruf von locale in jeder Zeile utf8 oder UTF-8 steht liegt an der Angabe in /etc/env.d/02locale. Die Schreibweise wird übernommen - so viel hab ich durch's Probieren schon mal heraus bekommen. Leider sind hierzu auch die Angaben im Internet nicht eindeutig.

Was mir an meinem Rechner aber noch aufgefallen ist:
Die Ausgabe von locale schreibt LC_MESSAGES im Gegensatz zu den anderen _ohne_ Anführungszeichen und immer mit UTF-8; die Schreibweise in /etc/env.d/02locale wird ignoriert (siehe meinen letzten Post). Im Netz finde ich nur einheutliche Schreibweisen in utf8 oder UTF-8 sowie alle mit oder ohne Anführungszeichen. Doch das kann auch nicht der wahre oder alleinige Grund sein, denn:

(und jetzt wird es noch unübersichtlicher)
Der Rechner mit Warnmeldung ist ein amd64. Die Meldung erscheint bei jeder erdenklichen Kombination, die ich ausprobierte. Mein altes Notebook, ein x86, bringt bei jeder identischen Konfiguration zum amd64 keine Warnmeldung, obwohl die Ausgaben von locale identisch ist.

Bin schlichtweg ratlos :?
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Wed Oct 01, 2014 7:37 pm    Post subject: Reply with quote

kalleda wrote:
Ob beim Aufruf von locale in jeder Zeile utf8 oder UTF-8 steht liegt an der Angabe in /etc/env.d/02locale.

Das ist völlig klar. Nachdem nun weder das Entschlacken überschüssiger Locales, noch der Versuch nach einheitlicher Schreibweise Abhilfe schaffen konnte, vor allem aber auch nicht die Maßnahme zielführend war, LC_ALL fortan undefiniert zu lassen, habe ich hierzu einstweilen auch keine Idee mehr. Ich gehe davon aus, dass du inmitten der Schritte jeweils env-update respektive reboot ausgeführt hast. Du schreibst, dass LC_MESSAGES offenbar unberührt bleibt von der Definition in /etc/env.d/02locale. Das ist höchst eigenartig. Im Grunde bleibt da nur etwas von der Sorte ~/.bashrc, ~/.xinitrc oder aber irgendeine unorthodoxe oder verwaiste Datei, die ebendies fabriziert.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4544
Location: Germany

PostPosted: Thu Oct 02, 2014 8:51 pm    Post subject: Reply with quote

kurisu wrote:
[...]
Im Grunde bleibt da nur etwas von der Sorte ~/.bashrc, ~/.xinitrc oder aber irgendeine unorthodoxe oder verwaiste Datei, die ebendies fabriziert.

Jup, die
Code:
 * Messages for package app-portage/layman-2.2.0:
...
 * LC_ALL is set to a locale with a charmap other than UTF-8.
 * This may trigger build failures in some python packages.

Warnung verschwand hier nachdem ein alter vergessener Eintrag aus der /etc/portage/bashrc entfernt wurde.

thx :)
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Thu Oct 02, 2014 10:11 pm    Post subject: Reply with quote

Josef.95 wrote:
kurisu wrote:
[...]
Im Grunde bleibt da nur etwas von der Sorte ~/.bashrc, ~/.xinitrc oder aber irgendeine unorthodoxe oder verwaiste Datei, die ebendies fabriziert.

Jup, die
Code:
 * Messages for package app-portage/layman-2.2.0:
...
 * LC_ALL is set to a locale with a charmap other than UTF-8.
 * This may trigger build failures in some python packages.

Warnung verschwand hier nachdem ein alter vergessener Eintrag aus der /etc/portage/bashrc entfernt wurde.

thx :)

Schön, dass ich unerwartet anderenorts helfen konnte. In diesem Sinne bleibt OP nur anzuraten, auch einen Blick auf die globale Konfiguration in /etc zu werfen.
Back to top
View user's profile Send private message
kalleda
n00b
n00b


Joined: 26 Sep 2014
Posts: 14

PostPosted: Wed Oct 08, 2014 3:01 pm    Post subject: Reply with quote

Entschuldigt bitte die verspätete Antwort - ich war ein paar Tage weg und der Rechner aus ;)

Vielen Dank für Eure Beitrage.
Nachdem ich gefühle 20 mal alle mir bekannten bashrc, profile und xinitrc nach dem Post von Josef.95 durchgeschaut hatte brachte der letzte Post von kurisu die Lösung. Mir war bisher völlig entgangen, dass es eine /etc/portage/bashrc überhaupt gibt :roll:
Diese fehlt auch auf dem x86, welcher die Meldung nicht brachte. Wird die Datei überhaupt noch gebraucht?

Gruss und Dank!
Back to top
View user's profile Send private message
kurisu
Apprentice
Apprentice


Joined: 19 Jan 2011
Posts: 159
Location: Munich, Germany

PostPosted: Mon Oct 13, 2014 8:54 pm    Post subject: Reply with quote

Super, dass das nun gelöst ist. Zu /etc/portage/bashrc kann ich nur sagen, dass diese Datei auf keinem meiner Gentoo-Systeme existiert. Allerdings sind das alles schon ältere, gleichwohl uptodate Installationen. Spekulativ kann ich hier nur mutmaßen, dass diese Datei inzwischen bei Neuinstallationen angelegt wird. Gegebenenfalls mag dies aber auch auf irgendein installiertes Programm zurückzuführen sein.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum 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