#27414 [Opn->Fbk]: setlocale doesn't work when called in an included file

From: Date: Sat, 06 Mar 2004 19:38:12 +0000
Subject: #27414 [Opn->Fbk]: setlocale doesn't work when called in an included file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56012@lists.php.net to get a copy of this message
ID: 27414 Updated by: iliaa@php.net Reported By: rmarth at firemail dot de -Status: Open +Status: Feedback Bug Type: *Languages/Translation Operating System: Win2k SP4 PHP Version: 4.3.5RC3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Cannot reproduce on Linux. Previous Comments: ------------------------------------------------------------------------ [2004-02-27 04:47:45] rmarth at firemail dot de Description: ------------ Calling setlocale() in an included file doesn't change the format of strftime(). System: Apache/1.3.29 (Win32) PHP/4.3.5RC3 Short Testcase: foo1.php ----------> echo setlocale (LC_ALL, array('de_DE', 'de_DE@euro', 'de', 'ge', 'german'); strftime("%A, %d.%B."); <---------- Output: German_Germany.1252 Donnerstag, 26.Februar Works. bar.php ----------> echo setlocale (LC_ALL, array('de_DE', 'de_DE@euro', 'de', 'ge', 'german'); <--------- foo2.php ----------> require('bar.php'); strftime("%A, %d.%m."); <--------- Output: German_Germany.1252 Thursday, 26.February Doesn't Work. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27414&edit=1

« previous php.bugs (#56012) next »