ID:               24518
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpspam at netebb dot com
 Status:           Open
-Bug Type:         *Languages/Translation
+Bug Type:         Documentation problem
 Operating System: Windows 2000 SP2
 PHP Version:      5.0.0b1 (beta1)
 New Comment:

The locale names are not same under windows.
Use 'setlocale(LC_ALL, "spanish");' instead.
(that works fine for me under Windows XP and RH Linux)

Making this documentation issue.




Previous Comments:
------------------------------------------------------------------------

[2003-07-06 23:56:28] phpspam at netebb dot com

Description:
------------
<?php
setlocale(LC_ALL, 'es_ES');
echo strftime("%A %e %B %Y");
?>

works fine on Debian, but fails on Windows 2000 SP2.

gettext() *does* work in Windows though, so I know it's not a
configuration issue (i.e., extension=php_gettext.dll).

I've tested this with both php 5.0.0 and php 4.3.2.

Cheers,

Ross


Reproduce code:
---------------
<?php
setlocale(LC_ALL, 'es_ES');
echo strftime("%A %e %B %Y");
?>

Expected result:
----------------
domingo 6 julio 2003 

Actual result:
--------------
Sunday July 2003


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24518&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to