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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC