[pmwiki-users] setlocale() warning

Masschelein Bart masschel at imec.be
Thu Jun 2 04:08:24 CDT 2005


Hello again,

Just for your information, when I comment the two lines mentioned before, where the error occurs, then everything goes ok, apparently... so for the moment it is solved. I'll get back when I find out more.

Bart.

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: Wednesday, June 01, 2005 19:13
To: Masschelein Bart
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] setlocale() warning


On Wed, Jun 01, 2005 at 06:55:33PM +0200, Masschelein Bart wrote:
>     Warning: setlocale() [function.setlocale]: Passing locale category name
>    as string is deprecated. Use the LC_* -constants instead. in
>    /imec/other/d6mm/public_html/pmwiki/pmwiki.php on line 118

What version of PHP are you running?

>    When I look at the corresponding line 118, I see
>     
>    if (preg_match('/^C$|\.UTF-?8/i',setlocale(LC_ALL,0)))
>      setlocale(LC_ALL,'en_US');
>     
>    so this seems ok.

Indeed, it does seem okay to me -- I'm guessing there must be
something else at play here.

Is there a url we could look at?  If so, can you set $EnableDiag=1;
in the config.php ?

Pm




More information about the pmwiki-users mailing list