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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 01:01:30 2024 UTC