Re: initdb: invalid locale name "sv_SE.ISO-8859-1" - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: initdb: invalid locale name "sv_SE.ISO-8859-1"
Date
Msg-id 20060912095604.GA16069@svana.org
Whole thread Raw
In response to initdb: invalid locale name "sv_SE.ISO-8859-1"  ("Ragnar Österlund" <ragoster@gmail.com>)
Responses Re: initdb: invalid locale name "sv_SE.ISO-8859-1"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Sep 12, 2006 at 09:43:31AM +0200, Ragnar Österlund wrote:
> Hi,
>
> When I try to initialize a new cluster like this:
>
> /usr/lib/postgresql/8.1/bin/initdb --locale=sv_SE.ISO-8859-1 -D sv_SE_data/
>
> I get the error:
>
> initdb: invalid locale name "sv_SE.ISO-8859-1"

Check whether this locale exists in /etc/locale.gen. If the name
doesn't exactly match, postgresql will complain that it doesn't know
it.

Either choose a name that is in that list, or add the one you want and
follow the instructions to rebuild the locale database.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: "Ragnar Österlund"
Date:
Subject: initdb: invalid locale name "sv_SE.ISO-8859-1"
Next
From: "Purusothaman A"
Date:
Subject: Re: [ADMIN] Problem with lo_export() and lo_import() from remote machine.