Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing locale in Gnome?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Thu Jun 02, 2005 7:42 pm    Post subject: Changing locale in Gnome? Reply with quote

I was wondering where to change the global locale setting in Gnome? If I choose Terminal - Set Character Encoding in Gnome Terminal,
it tells me that the current locale is ANSI_X3.4-1968 but I would like my locale to be ISO-8859-1. How do I fix this?


Regards,

BTJ
_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Thu Jun 02, 2005 8:07 pm    Post subject: Reply with quote

if you type "locale" in a terminal, do you get the same result ?

Code:

~ locale
LANG=en_US.UTF8
LC_CTYPE=da_DK.UTF8
LC_NUMERIC="en_US.UTF8"
LC_TIME="en_US.UTF8"
LC_COLLATE="en_US.UTF8"
LC_MONETARY="en_US.UTF8"
LC_MESSAGES="en_US.UTF8"
LC_PAPER="en_US.UTF8"
LC_NAME="en_US.UTF8"
LC_ADDRESS="en_US.UTF8"
LC_TELEPHONE="en_US.UTF8"
LC_MEASUREMENT="en_US.UTF8"
LC_IDENTIFICATION="en_US.UTF8"
LC_ALL=


if you just set it to "en_US" it will be most likelly iso8859-1

check your profile.
for bash:
Code:
export LC_CTYPE="en_US"



read this for more info:
http://www.gentoo.org/doc/en/guide-localization.xml
_________________
linux: #232767
Back to top
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Thu Jun 02, 2005 8:10 pm    Post subject: Re: Changing locale in Gnome? Reply with quote

bjorntj wrote:
I was wondering where to change the global locale setting in Gnome? If I choose Terminal - Set Character Encoding in Gnome Terminal,
it tells me that the current locale is ANSI_X3.4-1968 but I would like my locale to be ISO-8859-1. How do I fix this?


Regards,

BTJ



Well, actually, it seems like locale is wrong for my whole system... I have a directory I mount using NFS which uses Norwegian letters and ISO-8859-1. The encoding worked as it should by default in both SuSE and Slackware, but here in Gentoo my Norwegian letters are missing from the files on the NFS drive...
BTW, I have installed support for both en_US/ISO-8859-1 and no_NO/ISO-8859-1 when building glib....


BTJ
_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
Back to top
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Thu Jun 02, 2005 8:18 pm    Post subject: Reply with quote

[quote="ikaro"]if you type "locale" in a terminal, do you get the same result ?

Code:

~ locale
LANG=en_US.UTF8
LC_CTYPE=da_DK.UTF8
LC_NUMERIC="en_US.UTF8"
LC_TIME="en_US.UTF8"
LC_COLLATE="en_US.UTF8"
LC_MONETARY="en_US.UTF8"
LC_MESSAGES="en_US.UTF8"
LC_PAPER="en_US.UTF8"
LC_NAME="en_US.UTF8"
LC_ADDRESS="en_US.UTF8"
LC_TELEPHONE="en_US.UTF8"
LC_MEASUREMENT="en_US.UTF8"
LC_IDENTIFICATION="en_US.UTF8"
LC_ALL=


if you just set it to "en_US" it will be most likelly iso8859-1

check your profile.
for bash:
Code:
export LC_CTYPE="en_US"


Yes, I tried export LC_ALL="en_US", then the Norwegian letters changed (still not correct, but they changed...) but still not the result I want...

But I needed to do the same for root, before mounting the NFS drive of course... But how do I then change LC_CTYPE so the correct locale is set at boot (i.e. making mount use the correct LC_CTYPE)?

And how do I change the default characted encoding in Gnome Terminal?

BTJ
_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
Back to top
View user's profile Send private message
bjorntj
Guru
Guru


Joined: 01 Jun 2005
Posts: 402

PostPosted: Thu Jun 02, 2005 8:50 pm    Post subject: Reply with quote

ikaro wrote:
if you type "locale" in a terminal, do you get the same result ?

Code:

~ locale
LANG=en_US.UTF8
LC_CTYPE=da_DK.UTF8
LC_NUMERIC="en_US.UTF8"
LC_TIME="en_US.UTF8"
LC_COLLATE="en_US.UTF8"
LC_MONETARY="en_US.UTF8"
LC_MESSAGES="en_US.UTF8"
LC_PAPER="en_US.UTF8"
LC_NAME="en_US.UTF8"
LC_ADDRESS="en_US.UTF8"
LC_TELEPHONE="en_US.UTF8"
LC_MEASUREMENT="en_US.UTF8"
LC_IDENTIFICATION="en_US.UTF8"
LC_ALL=


if you just set it to "en_US" it will be most likelly iso8859-1

check your profile.
for bash:
Code:
export LC_CTYPE="en_US"



read this for more info:
http://www.gentoo.org/doc/en/guide-localization.xml



Maybe I should read this document before I start nagging... Created 02locale and now it works... :)

BTJ
_________________
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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