Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Little problem with perl5 interface

From: Edmund Mergl <E(dot)Mergl(at)bawue(dot)de>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Little problem with perl5 interface
Date: 1998-02-28 16:45:04
Message-ID: 34F83F10.4C8FA16F@bawue.de (view raw or flat)
Thread:
Lists: pgsql-hackers
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(at)flex(dot)ro )
> --
> Constantin Teodorescu
> FLEX Consulting Braila, ROMANIA


this is perl-related problem. Try perldoc locale. 

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

In response to

pgsql-hackers by date

Next:From: Michael J. RoganDate: 1998-02-28 16:52:08
Subject: Re: [HACKERS] Rule plan size for views?
Previous:From: Michael J. RoganDate: 1998-02-28 16:13:01
Subject: Re: [HACKERS] Reload of database with escaped data.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group