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');"

LC_ALL=de_DE.utf8 php -r "setlocale(LC_ALL,''); print strftime('%B');"

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)

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to