Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)
Дата
Msg-id 20152.1203028794@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Ideally, it should be an error to set lc_messages to a value that's not
> compatible with the current encoding.  Do we do that currently elsewhere?

We don't currently enforce that, and I'm not sure it's possible to do so
on non-Windows machines.  AFAIR the POSIX API doesn't even associate a
character set with anything but LC_CTYPE.

Does it make any sense to wire in the assumption that locale names have
the form "something.encoding-id"?  If we did that, we could enforce that
the encoding-id part matches LC_CTYPE, or maybe even just alter the
presented values for other LC_foo variables to match.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)
Следующее
От: "Gevik Babakhani"
Дата:
Сообщение: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVCstrikes back!)