Re: How to find correct locale name for CREATEDATABASE

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrus <kobruleht2(at)hot(dot)ee>
Cc: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>, Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, Thom Brown <thom(at)linux(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to find correct locale name for CREATEDATABASE
Date: 2010-12-02 22:44:55
Message-ID: 1291329895.11612.3.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On tor, 2010-12-02 at 19:53 +0200, Andrus wrote:
> I'm trying to create portable application which can automatically
> create
> database using estonian locale in any server.
> Postgres returns different values for same locale:
>
> In Fedora et_EE.UTF8
> Other linuxes et_EE.UTF-8
> In Windows Estonian_Estonia.1257
> In some other Linuxes something like Estonian.Estonia
>
> For this reason I'm looking for a way to probe server for locale
> existence.

Well, the solution here would be that someone sits down and creates a
universal taxonomy of all possible locale names in all possible
environments. Until someone embarks on that task, you will probably be
better off just tracking the handful of possible locale names applicable
to your concern yourself.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mabra 2010-12-02 23:04:36 Re: Looking for auto starting procedures
Previous Message Scott Ribe 2010-12-02 22:21:54 Re: Looking for auto starting procedures