#48876 [NEW]: Windows setlocale does use environment var
| From: | lbayuk at pobox dot com | Date: | Fri, 10 Jul 2009 02:05:22 +0000 |
| Subject: | #48876 [NEW]: Windows setlocale does use environment var | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2465@lists.php.net to get a copy of this message | ||
From: lbayuk at pobox dot com
Operating system: N/A
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Windows setlocale does use environment var
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 bug report at http://bugs.php.net/?id=48876&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48876&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48876&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48876&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48876&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48876&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48876&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48876&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48876&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48876&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48876&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48876&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48876&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48876&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48876&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48876&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48876&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48876&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48876&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48876&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48876&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48876&r=mysqlcfg