#39993 [Opn->Fbk]: tr_TR.UTF-8 locale has problems with PHP

From: Date: Sat, 30 Dec 2006 20:46:30 +0000
Subject: #39993 [Opn->Fbk]: tr_TR.UTF-8 locale has problems with PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107047@lists.php.net to get a copy of this message
 ID:               39993
 Updated by:       derick@php.net
 Reported By:      tunix at raptiye dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         *Unicode Issues
 Operating System: Arch Linux
 PHP Version:      5.2.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


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

[2006-12-30 18:22:08] tunix at raptiye dot org

Description:
------------
I type

<?php echo date("l"); ?>

into an empty php file and then run it in command line prompt, and it
prints this error message:

Fatal error: date(): Timezone database is corrupt - this should *never*
happen! in Command line code on line 1

If I use tr_TR.UTF-8 locale, then I can produce this error. But if I
use tr_TR.ISO8859-9 or C locales, it doesn't print the error message.
Although, tr_TR.ISO8859-9 and C locales return Saturday which is
English. It should return "Cumartesi" (turkish).

GNU date command works fine with UTF-8 locale.

[19:07] (tunix@penguix ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 date
+%A
Cumartesi

Reproduce code:
---------------
[19:06] (tunix@penguix ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r
‘date(”l”);’

Fatal error: date(): Timezone database is corrupt - this should *never*
happen! in Command line code on line 1


Expected result:
----------------
It's supposed to be:

[19:06] (tunix@penguix ~)$ TZ=Europe/Istanbul LANG=tr_TR.UTF-8 php -r
‘date(”l”);’

Cumartesi





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


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


Thread (6 messages)

« previous php.bugs (#107047) next »