Re: Determining client_encoding from client locale

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Determining client_encoding from client locale
Дата
Msg-id 4A38E704.40008@dunslane.net
обсуждение исходный текст
Ответ на Determining client_encoding from client locale  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers

Heikki Linnakangas wrote:
>
> client_encoding defaults to server_encoding, which is correct in the 
> typical environment where the client and the server have identical 
> locale settings, which I believe is why we don't see more confused 
> users on mailing lists. However, a partner of ours was recently bitten 
> by this. That was on Windows; I'm not 100% sure if LC_CTYPE is set 
> correctly there by default, but this seems like a good idea nevertheless.
>

IIRC Windows locales are not set via the environment. We've had to do 
some special hackery in a few placed to deal with that.

cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: [PATCH] backend: compare word-at-a-time in bcTruelen
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Determining client_encoding from client locale