locale help please

Florian Diesch diesch at spamfence.net
Mon Aug 28 05:57:26 UTC 2006


Marco <marco.mandl at gmx.at> wrote:

> Thilo Six wrote:
>
>> basically Ubuntu supports utf-8
>
> Isn't it more efficient to use iso-8859-15 if I don't need exotic language
> characters?

Depends on what you mean by "efficient". I'm using iso-8859-15 because
this saves me from converting all my old files.

>> you can check if your locale is avaiable on your system by:
>> $ locale -a
>
> de_AT at euro is there.
>> 
>> list all locales that ubuntu support:
>> $ less /usr/share/i18n/SUPPORTED
>
> de_AT at euro is there.
>> 
>> If you like to use your own locales you probably have to create it first:
>> $ cat /var/lib/locales/supported.d/local
>
> Here de_AT at euro is missing!
> But I have it in /var/lib/locales/supported.d/de. That should have the same
> effect, doesn't it?

Yes.

>> 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)

Just
 sudo locale-gen de_AT at euro
will do everything you need.

> Why do I need more than de_AT at euro ISO-8859-15 there?

You don't.
 
>> then
>> $ sudo dpkg-reconfigure locales
>
> No new files created. All files already were up-to-date.
>> 
>> should work then (You may need to reboot, i am not sure about this)
>
> Nothing changed.

What does
 ls -l /usr/lib/locale/de_AT at euro
say?

Maybe
 sudo locale-gen --purge 
helps. 



   Florian
-- 
<http://www.florian-diesch.de/>




More information about the ubuntu-users mailing list