View previous topic :: View next topic |
Author |
Message |
bjorntj Guru
Joined: 01 Jun 2005 Posts: 402
|
Posted: Thu Jun 02, 2005 7:42 pm Post subject: Changing locale in Gnome? |
|
|
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 |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Thu Jun 02, 2005 8:07 pm Post subject: |
|
|
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 |
|
|
bjorntj Guru
Joined: 01 Jun 2005 Posts: 402
|
Posted: Thu Jun 02, 2005 8:10 pm Post subject: Re: Changing locale in Gnome? |
|
|
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 |
|
|
bjorntj Guru
Joined: 01 Jun 2005 Posts: 402
|
Posted: Thu Jun 02, 2005 8:18 pm Post subject: |
|
|
[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 |
|
|
bjorntj Guru
Joined: 01 Jun 2005 Posts: 402
|
Posted: Thu Jun 02, 2005 8:50 pm Post subject: |
|
|
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 |
|
|
|