Req #62864 [Opn->Fbk]: strftime("%A") with locale set to french outputs date with capital letter

From: Date: Mon, 20 Aug 2012 01:41:47 +0000
Subject: Req #62864 [Opn->Fbk]: strftime("%A") with locale set to french outputs date with capital letter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-172704@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62864&edit=1 ID: 62864 Updated by: aharvey@php.net Reported by: pierrelouis dot peeters at gmail dot com Summary: strftime("%A") with locale set to french outputs date with capital letter -Status: Open +Status: Feedback Type: Feature/Change Request Package: Date/time related Operating System: Unix PHP Version: 5.4Git-2012-08-19 (snap) Block user comment: N Private report: N New Comment: This is almost certainly an issue with your OS locale support, rather than PHP. It behaves normally for in Ubuntu 12.04, for instance. What OS/distribution are you running, and what output do you get from running this in a shell: "LC_ALL=fr_FR.UTF-8 date" (or whatever French locale name is correct for your system). Previous Comments: ------------------------------------------------------------------------ [2012-08-19 09:44:47] pierrelouis dot peeters at gmail dot com Description: ------------ If you put locale to French (fr_FR), strftime outputs the day with a capital letter instead of all lowercase (e.g.: it outputs 'Vendredi' instead of 'vendredi'). In French, days don't have capital letters. Test script: --------------- setlocale(LC_ALL, 'fr_FR'); echo strftime("%A"); Expected result: ---------------- The current day in lowercase. Actual result: -------------- The current day with a capital letter. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62864&edit=1

« previous php.bugs (#172704) next »