Re: Problems with a custom LOCALE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "James B(dot) Byrne" <byrnejb(at)harte-lyne(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problems with a custom LOCALE
Date: 2012-12-16 20:13:59
Message-ID: 22871.1355688839@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"James B. Byrne" <byrnejb(at)harte-lyne(dot)ca> writes:
>>> PG::Error: ERROR: encoding "UTF8" does not match locale
>>> "en_CA(at)yyyy-mmm-dd(dot)UTF-8"
>>> DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".

> This is what I see on the host running postgresql-9.2
> # LC_ALL=en_CA(at)yyyy-mmm-dd(dot)utf8 locale charmap
> UTF-8

> Running locale against the base en_CA(at)yyyy-mmm-dd on the PG host shows
> this.
> LC_ALL=en_CA(at)yyyy-mmm-dd locale charmap
> ISO-8859-1

You're showing us three different spellings of the locale name above.
Are you really sure they're all equivalent?

Beyond that, you probably need to find a locale guru. I see no reason
to think there is anything wrong with the Postgres code for this, and
every reason to think there's something wrong with your locale
definition. But I don't know enough about custom locales to help you
identify exactly what.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Bex 2012-12-16 21:09:29 Re: Authenticate with hash instead of plaintext password?
Previous Message James B. Byrne 2012-12-16 19:26:28 Re: Problems with a custom LOCALE