Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PS1 Problem nach UTF-8 Umstellung
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
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2953
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Apr 08, 2008 9:53 pm    Post subject: PS1 Problem nach UTF-8 Umstellung Reply with quote

Hallo

ich habe gerade nach http://www.gentoo.org/doc/en/utf-8.xml mein System auf UTF-8 umgestellt.
Heute Nachmittag habe ich bei meinem Notebook die Umstellung gemacht und danach lief alles prima. Jetzt hab ich an meinem Desktop dasselbe getan. Dabei sieht meine /etc/locale.gen so aus:

Code:

en_US UTF-8
en_US.UTF-8 UTF-8
de_DE@euro UTF-8


Die /etc/env.d/02locale
Code:

LC_ALL="en_US.utf8"


doch ich hab jetzt zu "en_US" geändert.

Ich hab dann den X Server neugestartet, in gdm "English" gewählt und wenn ich ein Terminal starte (xterm, aterm, gnome-terminal) dann springt der Curor am Anfang der Zeile. Meine PS1 sieht so aus:

Code:

# in .bashrc
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w> \[\033[00m\]"


Bei mir sieht es dann so aus: user@host:~> aber der Cursor blink am Anfang der Zeile und nicht nach dem ">" Zeichen, wie es sein sollte. Wenn ich die alten Einstellungen habe, sprich LC_ALL="C", dann läuft alles wieder wunderbar.

Was mir auffält ist folgendes: Im Notebook hab ich in der locale.gen nur "en_US UTF-8". Nach einem locale-gen gibt locale -a "en_US.utf8" aus. Im Desktop hatte ich ursprüglich auch nur "en_US UTF-8" in der locale.gen, doch dort liefert locale -a nur en_US. Erst als ich dann "en_US.UTF-8 UTF-8" in der locale.gen hinzugefügt habe, liefert locale -a auch "en_US.utf8". Ob das etwas mit meinem Problem zu tun hat?

Danke für die Antworten

Gruss
Pablo
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2403
Location: Germany

PostPosted: Thu Apr 10, 2008 11:02 pm    Post subject: Reply with quote

pablo_supertux,

ich bin mir überhaupt gar nicht sicher ob dir das weiterhilft aber:

Ich hab in mehreren Threads und soweit ich mich erinnere auch bei pers. Einstellungen die Erfahrung gemacht, das es sehr wohl einen unterschied macht wenn man das einmal gross oder klein schreibt:

Code:

en_US.UTF-8 != en_US.utf8 != en_US.utf-8


Viel Erfolg!
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