|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-10 13:12 UTC] jani@php.net
[2009-09-11 07:07 UTC] jchochola at demsys dot cz
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 16:00:02 2025 UTC |
Description: ------------ setlocale( LC_ALL, 'Czech' ) does not work in my ISP's environment; one has to use lowercase 'czech' instead. The ISO639 (mentioned in setolcale() docs) lists country names with capitalized first letters, ie. setlocale() should accept 'Czech' or not to mention ISO639 at all. 'Czech' locale is OK under XAMPP used for local debugging. I can't imagine why such functions should use case-sensitive string params. Reproduce code: --------------- //--- //From manual page: function.setlocale //--- function e( $s ) { eval( '$r = '.$s.';' ); echo $s, ' returns ', $r ? 'true (\''.$r.'\')' : 'false', "\n"; } e( "setlocale( LC_ALL, 'Czech' )" ); e( "setlocale( LC_ALL, 'czech' )" ); Expected result: ---------------- setlocale( LC_ALL, 'Czech' ) returns true ('Czech') setlocale( LC_ALL, 'czech' ) returns true ('czech') Actual result: -------------- setlocale( LC_ALL, 'Czech' ) returns false setlocale( LC_ALL, 'czech' ) returns true ('czech')