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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
22 + 45 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon May 06 18:01:35 2024 UTC