Bug #66687 [Asn->Csd]: Cedilla caracters are returned by strftime

From: Date: Wed, 02 Sep 2015 13:56:43 +0000
Subject: Bug #66687 [Asn->Csd]: Cedilla caracters are returned by strftime
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195705@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66687&edit=1 ID: 66687 Updated by: simionea@php.net Reported by: myself at zeno dot ro Summary: Cedilla caracters are returned by strftime -Status: Assigned +Status: Closed Type: Bug Package: Date/time related Operating System: OSX 10.9 PHP Version: 5.4.25 Assigned To: simionea Block user comment: N Private report: N New Comment: 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). Previous Comments: ------------------------------------------------------------------------ [2014-02-10 16:11:43] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66687&edit=1

« previous php.bugs (#195705) next »