• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Sheeva with Debian - change charset or language  (Read 2703 times)
niko2001
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: July 26, 2010, 10:06:25 AM »

I had installed Debian on my Sheeva using http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html
I want to change the charset from en_GB-UTF-8 to da_DK-UTF-8 because the English charset ( en_GB-UTF-8 ) can not display the three speciel Danish letters , and .

Under the installation I can only choose English as language and an English based UTF8 charset. After the installation I had tried to run "dpkg-reconfigure locales" and choose da_DK-UTF-8, but I get a error "update-locale: Error: LANGUAGE ("en_GB:en") is not compatible with LANG (da_DK.UTF-8)".
I had also tried to change the locale.gen file but it does not work.
 
Can I change the charset or the language so I can see the Danish letters , and ?
Logged

Mh-Sheeva
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #1 on: November 01, 2010, 05:57:40 PM »

Hello,
Try this...

sudo dpkg-reconfigure locales
sudo locale-gen

Create a "locale.exp" file in the user's home
Copy in the "~/locale.exp" :

export LANG="da_DK-UTF-8"
export LANGUAGE="da_DK:da"
export LC_CTYPE="da_DK-UTF-8"
export LC_NUMERIC="da_DK-UTF-8"
export LC_TIME="da_DK-UTF-8"
export LC_COLLATE="da_DK-UTF-8"
export LC_MONETARY="da_DK-UTF-8"
export LC_MESSAGES="da_DK-UTF-8"
export LC_PAPER="da_DK-UTF-8"
export LC_NAME="da_DK-UTF-8"
export LC_ADDRESS="da_DK-UTF-8"
export LC_TELEPHONE="da_DK-UTF-8"
export LC_MEASUREMENT="da_DK-UTF-8"
export LC_IDENTIFICATION="da_DK-UTF-8"


Copy in the "~/.bashrc" :
 
if [ -f ~/locale.exp ]; then
   . ~/locale.exp
fi

Log out and reconnect...
normally it's OK

Bye
[Sorry for my English]
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #2 on: November 02, 2010, 05:29:50 PM »

export LANG="da_DK-UTF-8"
export LANGUAGE="da_DK:da"
export LC_CTYPE="da_DK-UTF-8"
export LC_NUMERIC="da_DK-UTF-8"
export LC_TIME="da_DK-UTF-8"
export LC_COLLATE="da_DK-UTF-8"
export LC_MONETARY="da_DK-UTF-8"
export LC_MESSAGES="da_DK-UTF-8"
export LC_PAPER="da_DK-UTF-8"
export LC_NAME="da_DK-UTF-8"
export LC_ADDRESS="da_DK-UTF-8"
export LC_TELEPHONE="da_DK-UTF-8"
export LC_MEASUREMENT="da_DK-UTF-8"
export LC_IDENTIFICATION="da_DK-UTF-8"
If you want them all then same then just:
Quote
LC_ALL=da_DK-UTF-8"
export LC_ALL
is quicker, and "more obvious" (to me).
Logged

Mh-Sheeva
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #3 on: November 02, 2010, 06:26:34 PM »

Hello,

LC_ALL --> should be left empty.
This environment variable can be changed by programs.

Bye
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #4 on: November 03, 2010, 03:50:58 PM »

LC_ALL --> should be left empty.
This environment variable can be changed by programs.
So can any environment variable.  But if it is changed by a program it overrides all of the others, so the fact you've set them doesn't matter.
e.g., I have LC_COLLATE set to C (since I like UPPER sorted before lower) but en_GB does caseless sorting, so:
Quote
[mysys]: echo $LC_ALL

[mysys]: echo $LC_COLLATE
C
[mysys]: /bin/ls
UPPER  lower
[mysys]: LC_ALL=en_GB /bin/ls
lower  UPPER
Logged

Pages: [1]
Print
Jump to: