php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66687 Cedilla caracters are returned by strftime
Submitted: 2014-02-10 16:11 UTC Modified: 2015-09-02 14:03 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: myself at zeno dot ro Assigned: simionea (profile)
Status: Closed Package: Date/time related
PHP Version: 5.4.25 OS: OSX 10.9
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: myself at zeno dot ro
New email:
PHP Version: OS:

 

 [2014-02-10 16:11 UTC] myself at zeno dot ro
Description:
------------
There is a problem with the returned days for strftime when setting the locale to ro_RO,

The affected day is "Tuesday" (marți), which is displayed as "t with cedilla bellow" (Unicode 0163). 

This is wrong, according to official Romanian National Standards SR 13411:1999
and SR 13392:2004 and International Standard ISO/IEC 8859-16 (Latin 10).

The correct character for the Romanian (ro_RO) locale is: 
- "t with comma below" (Unicode 021B) 

Test script:
---------------
<?php

setlocale(LC_TIME, 'ro_RO.UTF8');

$last_tuesday = strtotime("last Tuesday");
echo strftime( "<strong>%A</strong>, %d.%m.%Y", $last_tuesday ); 

?>


Expected result:
----------------
marți, 04.02.2014

Actual result:
--------------
marţi, 04.02.2014

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-02 13:49 UTC] simionea@php.net
-Assigned To: +Assigned To: simionea
 [2015-09-02 13:56 UTC] simionea@php.net
-Status: Assigned +Status: Closed
 [2015-09-02 13:56 UTC] simionea@php.net
This is a issue of the upstream glibc library. The locale definition needs to be corrected there.
A bug to correct this issue has been filed with Sourceware.org (https://sourceware.org/bugzilla/show_bug.cgi?id=18911).
 [2015-09-02 14:03 UTC] myself at zeno dot ro
Thanks for pushing this forward.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC