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

From: Date: Tue, 21 Aug 2001 14:30:54 +0000
Subject: Bug #12877: The locale is not taken in charge in strftime
Groups: php.dev 
Request: Send a blank email to php-dev+get-63972@lists.php.net to get a copy of this message
From:             srodriguez@ifrance.com
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     Date/time related
Bug description:  The locale is not taken in charge in strftime

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 bug report at: http://bugs.php.net/?id=12877&edit=1



Thread (3 messages)

« previous php.dev (#63972) next »