locale help please

Thilo Six T.Six at gmx.de
Sun Aug 27 13:20:38 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Marco wrote the following on 27.08.2006 14:28:
> Hello,
> 
> I don't get locale setting done correctly. I researched and tried a lot. Now
> I am more confused than ever.
> 
> I think "de_AT at euro" is the appropriate setting for me. It uses iso8859-15
> encoding, doesn't it?
> 
> Let show you some symptoms of my system:
> 
> $ man locale
> man: can't set the locale; make sure $LC_* and $LANG are correct
> Reformatting locale(1), please wait...
> 
> $ locale
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=de_AT at euro
> LC_CTYPE="de_AT at euro"
> LC_NUMERIC="de_AT at euro"
> LC_TIME="de_AT at euro"
> LC_COLLATE="de_AT at euro"
> LC_MONETARY="de_AT at euro"
> LC_MESSAGES="de_AT at euro"
> LC_PAPER="de_AT at euro"
> LC_NAME="de_AT at euro"
> LC_ADDRESS="de_AT at euro"
> LC_TELEPHONE="de_AT at euro"
> LC_MEASUREMENT="de_AT at euro"
> LC_IDENTIFICATION="de_AT at euro"
> LC_ALL=
> 
> $ touch test_ö
> $ ls test*
> test_?
> $ rm -v test_ö
> removed `test_\366'
> 
> $ apt-show-versions |grep ^locale
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LANGUAGE = (unset),
>         LC_ALL = (unset),
>         LANG = "de_AT at euro"
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> locales/dapper uptodate 2.3.18
> localeconf/dapper uptodate 0.9.4.1
> 
> $ apt-show-versions |grep ^language
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
>         LANGUAGE = (unset),
>         LC_ALL = (unset),
>         LANG = "de_AT at euro"
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> language-selector-common/dapper uptodate 0.1.20.1
> language-pack-en/dapper uptodate 1:6.06+20060725
> language-pack-gnome-de/dapper uptodate 1:6.06+20060725
> language-pack-gnome-en-base/dapper uptodate 1:6.06+20060725
> language-selector-qt/dapper uptodate 0.1.20.1
> language-pack-de/dapper uptodate 1:6.06+20060725
> language-pack-gnome-en/dapper uptodate 1:6.06+20060725
> language-pack-gnome-de-base/dapper uptodate 1:6.06+20060725
> language-pack-en-base/dapper uptodate 1:6.06+20060725
> language-support-en/dapper uptodate 1:6.06+20060529
> language-env/dapper uptodate 0.66
> language-pack-de-base/dapper uptodate 1:6.06+20060725
> language-selector/dapper uptodate 0.1.20.1
> language-support-de/dapper uptodate 1:6.06+20060529
> 
> Thanks in advance.
> 
> Regards,
> Marco

basically Ubuntu supports utf-8
$ locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

~$ touch öäü
~$ ll ö*
- -rw-r--r-- 1 ntutu ntutu 0 27.08.06 15:12 öäü

you can check if your locale is avaiable on your system by:
$ locale -a

list all locales that ubuntu support:
$ less /usr/share/i18n/SUPPORTED

If you like to use your own locales you probably have to create it first:
$ cat /var/lib/locales/supported.d/local

de_CH ISO-8859-1
de_DE ISO-8859-1
de_DE at euro ISO-8859-15
en_GB ISO-8859-1
en_US ISO-8859-1

so you entrance here would be:

$ grep de_AT /usr/share/i18n/SUPPORTED
de_AT.UTF-8 UTF-8
de_AT ISO-8859-1
de_AT at euro ISO-8859-15

add these lines to /var/lib/locales/supported.d/local (this file must be
created first)

then
$ sudo dpkg-reconfigure locales

should work then (You may need to reboot, i am not sure about this)

HTH Thilo
- --
i am on Ubuntu 2.6 KDE
- - some friend of mine

gpg key: Ox4A411E09

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE8ZwlgkdHiUpBHgkRA7UGAJ93wqdd+nWK2lfTnaNo4TxuaxDeMACeIpmL
wUGm6Q5HpEhFv3cqV2HAX2E=
=tKNq
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list