Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Character encoding messed up after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fidel
Guru
Guru


Joined: 16 Jul 2004
Posts: 407
Location: CH

PostPosted: Mon Jul 05, 2010 7:54 pm    Post subject: [SOLVED] Character encoding messed up after update Reply with quote

After I updated with
Code:
emerge -uDN world
the character encoding of the system is totally messed up. After logging in on console, whenever I type a or some multibyte character(s), such as
Code:
fidel@fidelski ~ $ äöüèà
etc., I am able to delete as double as much characters than that got written - in the above case i could delete (just by hitting backspace) up to:
Code:
fidel@fidelski
and so on.
When I cat a file in gnome-terminal, to which file -i says, it would be in a utf-8 encoding, messy characters show up, instead of umlauts I get unreadable garbage. When I enter vim from gnome and try to write umlauts, I get garbage, like ├ñ. When I enter vim outside gnome, I can write the umlauts but they take the place of two characters, after hitting an ä the cursors stands one position behind the ä.
No idea what causes this, I just got LANG=de_CH.UTF-8 and LC_COLLATE=C:
Code:
$ locale
LANG=de_CH.UTF-8
LC_CTYPE="de_CH.UTF-8"
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES="de_CH.UTF-8"
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=


This should be ok:
Code:
$ locale -a
C
POSIX
de_CH
de_CH.ibm850
de_CH.iso88591
de_CH.utf8
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE@euro
deutsch
en_US
en_US.iso88591
en_US.utf8
es_MX
es_MX.iso88591
fr_FR
fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR@euro
franþais
french
german
it_IT
it_IT.iso88591
italian



I use a swiss german keyboard:
Code:
$ grep -v "^#" /etc/conf.d/keymaps | grep "\w"
KEYMAP="sg-latin1"
SET_WINDOWKEYS="yes"
EXTENDED_KEYMAPS=""
DUMPKEYS_CHARSET=""

Any idea???

Thanks for any hint!


Last edited by fidel on Mon Jul 05, 2010 9:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
fidel
Guru
Guru


Joined: 16 Jul 2004
Posts: 407
Location: CH

PostPosted: Mon Jul 05, 2010 8:59 pm    Post subject: Reply with quote

The thing was that I played around with another charset before (namely ibm850), leaving this definition on the last line of the file
/etc/locale.gen:
Code:

...
de_CH UTF-8
de_CH IBM850

Was the reason. I just changed this to
Code:
...
de_CH IBM850
de_CH UTF-8

ran locale-gen again and the problems were gone! So nothing to do with the updates! :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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