Re: Locale + encoding combinations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Locale + encoding combinations
Дата
Msg-id 15707.1192025393@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Locale + encoding combinations  (Dave Page <dpage@postgresql.org>)
Ответы Re: Locale + encoding combinations  (Dave Page <dpage@postgresql.org>)
Список pgsql-hackers
Dave Page <dpage@postgresql.org> writes:
> OK so I added the appropriate entries (and posted the patch to
> -patches), but my original question remains: why can I only select the
> *default* encoding for the chosen locale, but not other ones that are
> also be valid according to setlocale? Is this a bug, or is there some
> technical reason?

Well, the chklocale code is designed around the assumption that there
*is* only one encoding for which a locale setting will work, with
C/POSIX being a special case.

I think we are talking a bit at cross-purposes here, because the Windows
equivalent to this notion seems to be "English_United Kingdom.1252"
whereas you seem to be defining locale as just "English_United Kingdom".
Does it not work the way you want if you make the installer pass locale
strings of the first form to initdb?
        regards, tom lane


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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Locale + encoding combinations
Следующее
От: Dave Page
Дата:
Сообщение: Re: Locale + encoding combinations