From: liber at iproom dot com Operating system: windows 2000 PHP version: 5.2.0 PHP Bug Type: Strings related Bug description: setlocale fail to set china or japan
Description: ------------ Can not setlocale to china or japan successful in Windows 2000 only. Reproduce code: --------------- $a = Array("ja", "jpn", "ja_JP", "Japanese_Japan", "japanese", "Japanese"); //$a = array("ja_ja", "ja_jp", "jp_ja", "jp_jp"); foreach($a as $locale) { if(setlocale(LC_ALL, $locale) !== false) { echo "$locale is ok\n"; } else { echo "$locale is bad\n"; } } Expected result: ---------------- ja is ok Actual result: -------------- ja is bad jpn is bad ja_JP is bad Japanese_Japan is bad japanese is bad Japanese is bad -- Edit bug report at http://bugs.php.net/?id=39420&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39420&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39420&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39420&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39420&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39420&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39420&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39420&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39420&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39420&r=support Expected behavior: http://bugs.php.net/fix.php?id=39420&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39420&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39420&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39420&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39420&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39420&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39420&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39420&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39420&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39420&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39420&r=mysqlcfg