Re: Problem with setlocale (found in libecpg) [accessing a

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with setlocale (found in libecpg) [accessing a
Дата
Msg-id 15361.1001563709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with setlocale (found in libecpg) [accessing a  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы pg_locale (Was: Re: Problem with setlocale (found in libecpg)...)  (Karel Zak <zakkr@zf.jcu.cz>)
Список pgsql-patches
>> Well at least on glibc-2.2 it seems that setlocale retuns a pointer to
>> malloced memory, and frees this pointer on subsequent calls to
>> setlocale.
>> So I would kindly ask you to take a second look at every invokation of
>> setlocale.

I looked around, and am worried about the behavior of PGLC_current()
in src/backend/utils/adt/pg_locale.c.  It doesn't change locale but
does retrieve several successive setlocale() results.  Does that work
in glibc?

            regards, tom lane

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

Предыдущее
От: Justin
Дата:
Сообщение: Re: More fixes for missing double quotes in the shell scripts
Следующее
От: Christof Petig
Дата:
Сообщение: Re: Problem with setlocale (found in libecpg) [accessing a