#48876 [Opn->Csd]: Windows setlocale does use environment var
| From: | danbrown@php.net | Date: | Thu, 23 Jul 2009 03:56:50 +0000 |
| Subject: | #48876 [Opn->Csd]: Windows setlocale does use environment var | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2539@lists.php.net to get a copy of this message | ||
ID: 48876
Updated by: danbrown@php.net
Reported By: lbayuk at pobox dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
New Comment:
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!
Previous Comments:
------------------------------------------------------------------------
[2009-07-23 03:56:11] 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-10 02:05:20] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48876&edit=1