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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Дата
Msg-id 25116.1585445627@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: could not determine encoding for locale "et_EE.UTF-8": codeset is "CPUTF-8" in pg_restore
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: PG12 autovac issues