Bug #12877 Updated: The locale is not taken in charge in strftime

From: Date: Tue, 02 Oct 2001 22:43:18 +0000
Subject: Bug #12877 Updated: The locale is not taken in charge in strftime
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67152@lists.php.net to get a copy of this message
ID: 12877
Updated by: sniper
Reported By: srodriguez@ifrance.com
Old Status: Feedback
Status: Closed
Bug Type: Date/time related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

No feedback and can not reproduce.


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

[2001-08-22 00:27:32] sniper@php.net

Then there is something seriously broken
in your system, since this works just fine
for me on Linux..

Are you sure you have those locales installed?

--Jani


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

[2001-08-21 10:30:54] srodriguez@ifrance.com

Hi,

The locale is not supported in php-4.0.6.

Example the file t.php:

<?php

setlocale ("LC_TIME", "C");
print (strftime ("%A in Finnish is "));
setlocale ("LC_TIME", "fi_FI");
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_CA");
print (strftime ("%A and in German "));
setlocale ("LC_TIME", "de_DE");
print (strftime ("%A.\n"));
      

?>


used as : 

$  /usr/local/stow/php-4.0.6/bin/php t.php

displays : 

X-Powered-By: PHP/4.0.6
Content-type: text/html

Tuesday in Finnish is Tuesday, in French Tuesday and in 
German Tuesday.



Thanks.


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



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



Thread (3 messages)

« previous php.dev (#67152) next »