Little problem with perl5 interface

Started by Constantin Teodorescualmost 28 years ago3 messages

I have compiled the perl5 interface and installed it without problem.

A simple script that makes a connection to a database and read a table
works , read and print the informtion corectly but it generates the
following warnings right at the begining of script execution :

warning: setlocale(LC_CTYPE, "") failed.
warning: LC_ALL = "(null)", LC_CTYPE = "(null)", LANG = "us",
warning: falling back to the "C" locale.

I am trying to use that script into a cgi-bin called from within a web
page but the first lines that must come out from the script execution
must be :

Content-type:text/html

and not that warnings ...

That's why my cgi-bin didn't worked and my web server reports :
Documents contain no data.

What do I have in order to fix that warning messages ?

Thanks in advance,
(please cc: me directly ,teo@flex.ro )
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

In reply to: Constantin Teodorescu (#1)
Re:Little problem with perl5 interface

Sorry, I forgot to mention the most important details :

O.S. = RedHat Linux i386 4.2 with 2.0.32 kernel
PostgreSQL 6.3 snapshot from Feb 23
Hardware : Pentium 200MMX 64 Mb RAM

--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

#3Edmund Mergl
E.Mergl@bawue.de
In reply to: Constantin Teodorescu (#1)
Re: [HACKERS] Little problem with perl5 interface

Constantin Teodorescu wrote:

I have compiled the perl5 interface and installed it without problem.

A simple script that makes a connection to a database and read a table
works , read and print the informtion corectly but it generates the
following warnings right at the begining of script execution :

warning: setlocale(LC_CTYPE, "") failed.
warning: LC_ALL = "(null)", LC_CTYPE = "(null)", LANG = "us",
warning: falling back to the "C" locale.

I am trying to use that script into a cgi-bin called from within a web
page but the first lines that must come out from the script execution
must be :

Content-type:text/html

and not that warnings ...

That's why my cgi-bin didn't worked and my web server reports :
Documents contain no data.

What do I have in order to fix that warning messages ?

Thanks in advance,
(please cc: me directly ,teo@flex.ro )
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

this is perl-related problem. Try perldoc locale.

Edmund
--
Edmund Mergl mailto:E.Mergl@bawue.de
Im Haldenhau 9 http://www.bawue.de/~mergl
70565 Stuttgart fon: +49 711 747503
Germany gsm: +49 171 2645325