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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lbayuk at pobox dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 00:01:30 2024 UTC