Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore - Mailing list pgsql-general

From Tom Lane
Subject Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Date
Msg-id 25116.1585445627@sss.pgh.pa.us
Whole thread Raw
In response to Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Next
From: Michael Paquier
Date:
Subject: Re: PG12 autovac issues