Re: Locale Issue

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Don Parris <parrisdc(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Locale Issue
Date: 2013-08-21 14:08:58
Message-ID: 3902.1377094138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Don Parris <parrisdc(at)gmail(dot)com> writes:
> When I install the Kubuntu (13.04) postgresql (9.1) packages, the default
> template1 encoding turns out to be ASCII, which is not really what I want.
> My OS locale command reveals everything to be en_US.UTF-8, except for
> LC_ALL, which is left open.

initdb will absorb locale/encoding from its environment, unless told
otherwise through a --locale switch. So the usual expectation would be
that it'd work like you want. Perhaps the Ubuntu packager set LANG=C in
the postgres user's ~/.profile, or some such? Poke around a bit in the
package's files, it shouldn't be too hard to find where the damage is
being done.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Radovanovic 2013-08-21 14:34:48 Re: Bug in psql (\dd query)
Previous Message Joseph Marlin 2013-08-21 14:08:23 WAL Replication Working but Not Working