#48612 [NEW]: PHP command line interpreter ignores LC_ALL setting
| From: | per at computer dot org | Date: | Fri, 19 Jun 2009 19:39:53 +0000 |
| Subject: | #48612 [NEW]: PHP command line interpreter ignores LC_ALL setting | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2375@lists.php.net to get a copy of this message | ||
From: per at computer dot org
Operating system: Linux
PHP version: 5.2.10
PHP Bug Type: *Languages/Translation
Bug description: PHP command line interpreter ignores LC_ALL setting
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 bug report at http://bugs.php.net/?id=48612&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48612&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48612&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48612&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48612&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48612&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48612&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48612&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48612&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48612&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48612&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48612&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48612&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48612&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48612&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48612&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48612&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48612&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48612&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48612&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48612&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48612&r=mysqlcfg