#48612 [Opn->Bgs]: CLI ignores LC_ALL setting

From: Date: Fri, 24 Jul 2009 10:59:45 +0000
Subject: #48612 [Opn->Bgs]: CLI ignores LC_ALL setting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140190@lists.php.net to get a copy of this message
ID: 48612 Updated by: jani@php.net Reported By: per at computer dot org -Status: Open +Status: Bogus Bug Type: CGI related Operating System: Linux PHP Version: 5.2.10 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2009-06-19 19:39:53] per at computer dot org Description: ------------ the PHP command line interpreter appears to ignore the LC_ALL setting. In order to make it work, it appears to require an explicit call of setlocale() in a script. Reproduce code: --------------- LC_ALL=de_DE.utf8 php -r "print strftime('%B');" Expected result: ---------------- Juni Actual result: -------------- June ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48612&edit=1

« previous php.bugs (#140190) next »