pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrus <kobruleht2@hot.ee>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Date: Sat, 28 Mar 2020 21:33:47 -0400
Message-ID: <25116.1585445627@sss.pgh.pa.us> (raw)
In-Reply-To: <22672.1585442578@sss.pgh.pa.us>
References: <F4D04849032C4464B8FF17CB0F896F9E@dell2>
	<22672.1585442578@sss.pgh.pa.us>

I wrote:
> (I do agree that that message isn't the most helpful thing.  It looks
> like chklocale.c is overoptimistically assuming that what it's handed
> is valid, even if GetLocaleInfoEx says it isn't.)

After further digging, that optimism isn't *completely* without
foundation; it seems to be based on the fact that we know setlocale()
thought the locale string was OK.  Which is interesting --- apparently
Microsoft is more willing to accept Unix-style locale names than
I thought.  But they couldn't be bothered to make GetLocaleInfoEx()
and setlocale() take the same set of strings ...

			regards, tom lane





view thread (16+ messages)  latest in thread

Message-ID: <25116.1585445627@sss.pgh.pa.us>
Permalink:  ../25116.1585445627@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25116.1585445627@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kobruleht2@hot.ee
  Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
  In-Reply-To: <25116.1585445627@sss.pgh.pa.us>
  References: <F4D04849032C4464B8FF17CB0F896F9E@dell2> <22672.1585442578@sss.pgh.pa.us> <25116.1585445627@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox