Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Uppdaterad mini-HOWTO ÅÄÖ
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
tobbebobbe
n00b
n00b


Joined: 10 Feb 2011
Posts: 24

PostPosted: Tue Mar 15, 2011 7:10 pm    Post subject: Uppdaterad mini-HOWTO ÅÄÖ Reply with quote

Hej,

Jag har läst många inlägg här i mina försök att få åäö att fungera i både konsolen och gnome-terminal utan att lyckas. Till slut hittade jag en guide skriven för archlinux som även fungerar för gentoo: https://wiki.archlinux.org/index.php/Configuring_locales

Summering:

/etc/locale.gen ska innehålla:
sv_SE.UTF-8 UTF-8
sv_SE ISO-8859-1

Kör $ locale-gen

/etc/environment:

LANG=sv_SE.UTF-8
LC_ALL=sv_SE.UTF-8

/etc/conf.d/keymaps:

KEYMAP="sv-latin1"


Hoppas det kan hjälpa någon.
Back to top
View user's profile Send private message
tobbebobbe
n00b
n00b


Joined: 10 Feb 2011
Posts: 24

PostPosted: Tue Mar 15, 2011 11:00 pm    Post subject: Reply with quote

Okej, ovanstående gav mig fungerande åäö, men det ändrade även språk i diverse program till svenska vilket jag inte vill. Nu har jag gjort som följer och har fungerade åäö samt engelska som språk:

Code:

# cat /etc/locale.gen
...
sv_SE.UTF-8 UTF-8
sv_SE ISO-8859-1
en_US ISO-8859-1
en_US.UTF-8 UTF-8
...


Code:

# cat /etc/conf.d/keymaps
...
KEYMAP="sv-latin1"
...


Code:

# cat /etc/env.d/02locale
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
Back to top
View user's profile Send private message
rndusr
Guru
Guru


Joined: 04 Dec 2005
Posts: 392

PostPosted: Thu Mar 31, 2011 6:25 pm    Post subject: Reply with quote

Det är meningslöst att ha något annat än utf8-varianterna. Amerikanerna har missanpassad pappersstorlek (så kallad "legal"), så det är lämpligt att definiera om LC_PAPER också.
_________________
If you've got nothing nice to say, you're probably not alone...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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