about locale settings

From: Date: Sat, 13 Jun 2009 07:09:05 +0000
Subject: about locale settings
Groups: php.general 
Request: Send a blank email to php-general+get-293998@lists.php.net to get a copy of this message
When I've set LC_ALL before calling php, why do I need to call setlocale() in the script too: LC_ALL=de_DE.utf8 php -r "print strftime('%B');" June LC_ALL=de_DE.utf8 php -r "setlocale(LC_ALL,''); print strftime('%B');" Juni What am I missing here? I have no problem with the setlocale(LC_ALL,'') call, but I'd like to understand why I need it. -- Per Jessen, Zürich (16.1°C)

« previous php.general (#293998) next »