php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48876 Windows setlocale does use environment var
Submitted: 2009-07-10 02:05 UTC Modified: 2009-07-23 03:56 UTC
From: lbayuk at pobox dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2009-07-10 02:05 UTC] lbayuk at pobox dot com
Description:
------------
Manual (2009-06-30) for setlocale() says that "if locale is NULL or the empty string "", the locale names will be set from the values of
environment variables with the same names as the above categories..."

This is incorrect for Windows. On Windows, setlocale(LC_ALL, '') sets the locale names from the system's regional/language settings (available through Control Panel). Windows does not consider any environment variables with setlocale.

Reference: http://msdn.microsoft.com/en-us/library/x99tb11d.aspx



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-23 03:56 UTC] svn@php.net
Automatic comment from SVN on behalf of danbrown
Revision: http://svn.php.net/viewvc/?view=revision&revision=284631
Log: Addresses Bug #48876, describes optional parameters 3+, and includes some grammatical changes.
 [2009-07-23 03:56 UTC] danbrown@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Your suggested text was used nearly verbatim.  Thanks for your 
contribution!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 26 22:01:25 2025 UTC