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

2001-09-27 Thread Christof Petig
Michael Meskes wrote: > On Thu, Sep 27, 2001 at 12:08:29AM -0400, Tom Lane wrote: > > 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 w

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

2001-09-27 Thread Karel Zak
On Thu, Sep 27, 2001 at 09:26:12AM +0200, Christof Petig wrote: > Tom Lane wrote: > > > >> 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 seco

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

2001-09-27 Thread Christof Petig
Tom Lane wrote: > >> 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 w