Re: initdb: invalid locale name "sv_SE.ISO-8859-1"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Ragnar Österlund <ragoster(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: initdb: invalid locale name "sv_SE.ISO-8859-1"
Date: 2006-09-12 14:05:33
Message-ID: 15701.1158069933@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> On Tue, Sep 12, 2006 at 09:43:31AM +0200, Ragnar =D6sterlund wrote:
>> 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.

I think the more portable way to discover what locale names the OS
knows is "locale -a" ... /etc/locale.gen doesn't exist on my machines.

FWIW, on the machines I have access to, "sv_SE.iso88591" seems to be the
standard spelling for this locale name; for instance on Fedora Core 5

$ locale -a | grep sv
sv_FI
sv_FI.iso88591
sv_FI(dot)iso885915(at)euro
sv_FI.utf8
sv_FI(at)euro
sv_SE
sv_SE.iso88591
sv_SE.iso885915
sv_SE.utf8
$

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-09-12 15:15:55 Re: initdb: invalid locale name "sv_SE.ISO-8859-1"
Previous Message Ivan Sergio Borgonovo 2006-09-12 14:03:40 Re: initdb: invalid locale name "sv_SE.ISO-8859-1"