Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Euler Taveira de Oliveira
Hi Peter, > > > > I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. > > > > How can we fix it? > > > > > > Put #ifdef CODESET around the offending code. > > > > OK. Another try. > > What does > > nl_langinfo(NULL) > > return? Probably not a valid codepage. > No. Just "". S

Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Peter Eisentraut
Euler Taveira de Oliveira wrote: > > > I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. > > > How can we fix it? > > > > Put #ifdef CODESET around the offending code. > > OK. Another try. What does nl_langinfo(NULL) return? Probably not a valid codepage. -- Peter Eisentra

Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Euler Taveira de Oliveira
Hi Peter, > > I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. > > How can we fix it? > > Put #ifdef CODESET around the offending code. > OK. Another try. -- Euler Taveira de Oliveira euler (at) ufgnet.ufg.br Desenvolvedor Web e Administrador de Sistemas UFGNet - Universidade

Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Andrew Dunstan
Tom Lane wrote: Euler Taveira de Oliveira <[EMAIL PROTECTED]> writes: I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. How can we fix it? 1) just define it on configure.in when we don't have it. Like this: You've got to be kidding. That will cause get_encoding_fro

Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Tom Lane
Euler Taveira de Oliveira <[EMAIL PROTECTED]> writes: > I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. > How can we fix it? > 1) just define it on configure.in when we don't have it. Like this: You've got to be kidding. That will cause get_encoding_from_locale to return some r

Re: [HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Peter Eisentraut
Euler Taveira de Oliveira wrote: > I am using an OpenBSD 3.5. OpenBSD doesn't have 'CODESET' symbol. > How can we fix it? Put #ifdef CODESET around the offending code. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)

[HACKERS] Compile failure on nl_langinfo

2004-07-31 Thread Euler Taveira de Oliveira
Hi, I am seeing the following compile failure in currrent CVS. gmake[4]: Leaving directory `/dados/pgsql/cvs/pgsql/src/port' gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations -DFRONTEND -I../../../src/interfaces/libpq -I../../../src/include -I/usr/local/include -