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

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Tips for supported locale strings on Windows can now be found in the
docs. Changes made can be viewed here:
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/setlocale.xml?sbt=1&login=2&r1=1.10&r2=1.11&ty=u



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

[2003-07-07 09:37:47] [EMAIL PROTECTED]

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.



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

[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