Re: Win32 & NLS

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Win32 & NLS
Дата
Msg-id 200410171747.19662.peter_e@gmx.net
обсуждение исходный текст
Ответ на Win32 & NLS  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-patches
Magnus Hagander wrote:
> Which appears to suggest that we should change the locale using
> putenv() etc, and not using setlocale() at all... Because setlocale()
> does not support LC_MESSAGES, probably.

This cannot possibly work.  putenv() doesn't change any locale.  The
environment variables only serve as a default when you call setlocale()
without an actual locale value.  But to enable any locale, you always
need to call setlocale() somehow, somewhere.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Win32 & NLS
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Win32 & NLS