#27414 [Fbk->NoF]: setlocale doesn't work when called in an included file
| From: | sniper@php.net | Date: | Thu, 11 Mar 2004 14:54:17 +0000 |
| Subject: | #27414 [Fbk->NoF]: setlocale doesn't work when called in an included file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56310@lists.php.net to get a copy of this message | ||
ID: 27414
Updated by: sniper@php.net
Reported By: rmarth at firemail dot de
-Status: Feedback
+Status: No Feedback
Bug Type: *Languages/Translation
Operating System: Win2k SP4
PHP Version: 4.3.5RC3
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2004-03-06 14:38:11] iliaa@php.net
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.
------------------------------------------------------------------------
[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