Adding locales on Ubuntu?

Adam Funk a24061 at yahoo.com
Thu Jul 13 10:30:43 UTC 2006


On 2006-07-12, Florian Diesch <diesch at spamfence.net> wrote:
> Adam Funk <a24061 at yahoo.com> wrote:
>
>> The output of `locale -a` include C, POSIX and a number of locales
>> ending in utf8.  I need to have a few iso88591 locales as well, for
>> viewing and manipulating text files in Latin-1.
>>
>> On Debian, I do this by adding them to /etc/locale.gen and run
>> locale-gen (as root).  My Ubuntu machine doesn't have this file and
>> /etc/belocs/locale-gen.conf looks quite different.
>
> sudo locale-gen en_GB.ISO-8859-15   (or whatever locales you want)

That particular combination works, but not some others (see below),
even though both of these files
  /usr/share/i18n/charmaps/ISO-8859-15.gz
  /usr/share/i18n/charmaps/ISO-8859-1.gz
exist.  How can I find out what combinations are allowed, or force it
to allow French with Latin-1?

Thanks,
Adam


# locale-gen en_GB.ISO-8859-1
Error: 'en_GB.ISO-8859-1' is not a supported language or locale

# locale-gen en_GB.ISO-8859-15
Generating locales...
  en_GB.ISO-8859-15... done
Generation complete.

# locale -a
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.iso885915
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX
ro_RO.utf8

# locale-gen fr_FR.ISO-8859-1
Error: 'fr_FR.ISO-8859-1' is not a supported language or locale

# locale-gen fr_FR.ISO-8859-15
Error: 'fr_FR.ISO-8859-15' is not a supported language or locale





More information about the ubuntu-users mailing list