Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UtF8-Umstellung klappt nicht wirklich
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)
View previous topic :: View next topic  
Author Message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Sat Aug 12, 2006 4:05 pm    Post subject: UtF8-Umstellung klappt nicht wirklich Reply with quote

Hi,

ich hab die Anleitungen auf http://de.gentoo-wiki.com/UTF-8 und http://www.gentoo.org/doc/de/utf-8.xml aber ich hab noch einige Probleme.
Umlaute werden selten auf der Shell falsch/gar nicht ausgegeben, zB hier:
Code:
#: man hallo
Keine Handbuch-Seite fr hallo

Außerdem gibt es Probleme mit Umlauten etwa bei dem Programm easytag, oder auch beim Booten.

Das alles ist noch auszuhalten, aber was mich mehr verwundert ist, dass neu erstellte Dateien eben nicht Unicode-Charset haben, sondern us-ascii:
Code:
#: touch test
#: echo "test" > test
#: file -bi test
text/plain; charset=us-ascii

Gleiches, wenn ich Dateien mit vim erstelle und abspeichere, obwohl ich fontencoding in der .vimrc auf utf8 gestellt habe..

Hier mal die Ausgabe von "locale":
Code:
#: 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

Vielleicht hilft das noch was:
Code:
#: cat /etc/env.d/02locale
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
GDM_LANG="de_DE.utf8"
LANGUAGE="de_DE:de:en_GB:en"
Back to top
View user's profile Send private message
TheSmallOne
Guru
Guru


Joined: 22 Jan 2005
Posts: 467
Location: Germany

PostPosted: Sun Aug 13, 2006 8:13 am    Post subject: Re: UtF8-Umstellung klappt nicht wirklich Reply with quote

monade wrote:
ich hab die Anleitungen auf http://de.gentoo-wiki.com/UTF-8 und http://www.gentoo.org/doc/de/utf-8.xml aber ich hab noch einige Probleme.
Umlaute werden selten auf der Shell falsch/gar nicht ausgegeben, zB hier:
Code:
#: man hallo
Keine Handbuch-Seite fr hallo


man ist irgendwie ein ganz schlechtes Beispiel. Dieses Problem habe ich nämlich auch und das obwohl Unicode ansonsten eigenlich überall klappt. Ich würde sagen das Programm selbst hat da ein Problem mit.


Quote:
Gleiches, wenn ich Dateien mit vim erstelle und abspeichere, obwohl ich fontencoding in der .vimrc auf utf8 gestellt habe..

Hast du es auch mal mit fileencodings probiert?

Quote:

Hier mal die Ausgabe von "locale":
[...]
Vielleicht hilft das noch was:
Code:
#: cat /etc/env.d/02locale
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
GDM_LANG="de_DE.utf8"
LANGUAGE="de_DE:de:en_GB:en"

Hm, das ist interessant. In deiner /etc/env.d/02locale werden die Variablen auf de_DE.utf8 gesetzt, aber am Ende stehen sie alle auf de_DE.UTF-8. Wo kommt das her? Da beide Werte das gliche Ergebniss zur Folge haben macht das zwar nichts, aber wäre schon interessant zu wissen, wieso das so ist.

An und für sich habe ich den Eindruck, dass du kein wirkliches Problem mit der Umstellung hast, sondern beim Testen nur auf die paar Ausnahmen getroffen bist, die Probleme machen (wie z.B. man). Was das echo "test">test angeht: Versuch es mal mit ein paar Umlauten o.ä.. Solange die Datei nur reine ASCII-Zeichen enthält wird sie auch als solche identifiziert, da Unicode auf dem Bereich absolut identisch ist.
Back to top
View user's profile Send private message
SvenFischer
Veteran
Veteran


Joined: 05 Feb 2003
Posts: 1033
Location: Berlin

PostPosted: Sun Aug 13, 2006 8:44 am    Post subject: Reply with quote

Noch die /et/locale.gen anpassen und dann mit dem Befehl locale-gen aktivieren?

Ist das USE Flag "NLS" gesetzt? "Emerge man" neu...
_________________
Core2Duo, 4GB RAM, AMD/ATI 4850 and nice person in front!
Back to top
View user's profile Send private message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Sun Aug 13, 2006 11:54 am    Post subject: Re: UtF8-Umstellung klappt nicht wirklich Reply with quote

TheSmallOne wrote:
Was das echo "test">test angeht: Versuch es mal mit ein paar Umlauten o.ä.. Solange die Datei nur reine ASCII-Zeichen enthält wird sie auch als solche identifiziert, da Unicode auf dem Bereich absolut identisch ist.

:roll: Oh man, so einfach wars, vielen Dank. Das wusste ich wirklich nicht. Tatsächlich wenn ich mit vim oder echo Umlaute einfüge, sind die Dateien utf-8-kodiert.

Das löst zwar nicht die anderen Probleme, aber zumindest scheint die Umstellung doch geklappt zu haben.

SvenFischer wrote:
Noch die /et/locale.gen anpassen und dann mit dem Befehl locale-gen aktivieren?

Ist das USE Flag "NLS" gesetzt? "Emerge man" neu...

Danke, hatte ich schon probiert, hilft leider nichts.
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Sun Aug 13, 2006 1:46 pm    Post subject: Reply with quote

Wie sieht eure man.conf aus?

so:
Code:

     95 TROFF»··»···/usr/bin/groff -Tps -mandoc
     96 NROFF»··»···/usr/bin/nroff -Tascii -c -mandoc


Bye.
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
monade
Apprentice
Apprentice


Joined: 17 Mar 2005
Posts: 204
Location: Berlin

PostPosted: Sun Aug 13, 2006 2:48 pm    Post subject: Reply with quote

smg wrote:
Wie sieht eure man.conf aus?

Bei mir siehts genauso aus.
In der Konfigdatei steht ja noch:
Code:
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
# (Maybe - but today I need -Tlatin1 to prevent double conversion to utf8.)


Aber auch ohne die T-Option, oder auch mit -Tlatin1 wirds nicht besser.
Back to top
View user's profile Send private message
Carminis
n00b
n00b


Joined: 09 May 2006
Posts: 3
Location: München

PostPosted: Mon Aug 14, 2006 5:52 pm    Post subject: Reply with quote

Schon 'mal auf die Idee gekommen, die Konsolenschriftart in der Shell zu ändern?

Am problemlosesten geht's mit lat0-16 (laut README im consolefonts-Ordner entspricht das Kürzel Latin 0 dem Zeichensatz ISO-8859-15).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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