php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69138 PHP sometimes see tr_TR.UTF-8 sometimes not see
Submitted: 2015-02-27 13:36 UTC Modified: 2015-02-27 13:51 UTC
From: drtzack at gmail dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.5.22 OS: Ubuntu x86_64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: drtzack at gmail dot com
New email:
PHP Version: OS:

 

 [2015-02-27 13:36 UTC] drtzack at gmail dot com
Description:
------------
PHP Version 5.5.9-1ubuntu4.5

Everytime when I refresh the page it shows different result.
Generally
Friday 22 December 1978
and sometimes
Cuma 22 Şubat 1978

But it's okay when I set tr_TR instead of tr_TR.UTF-8

But this time result is not UTF8 formatted.

Test script:
---------------
echo setlocale(LC_ALL, 'tr_TR.UTF-8');
echo strftime("%A %d %B %Y", mktime(0, 0, 0, 12, 22, 1978));
exit(0);


Expected result:
----------------
Cuma 22 Şubat 1978

Actual result:
--------------
Friday 22 December 1978

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-27 13:51 UTC] drtzack at gmail dot com
-Status: Open +Status: Closed
 [2015-02-27 13:51 UTC] drtzack at gmail dot com
It's ubuntu bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC