php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48612 CLI ignores LC_ALL setting
Submitted: 2009-06-19 19:39 UTC Modified: 2009-07-24 10:59 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: per at computer dot org Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.10 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: per at computer dot org
New email:
PHP Version: OS:

 

 [2009-06-19 19:39 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-24 10:59 UTC] jani@php.net
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


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC