Edit report at https://bugs.php.net/bug.php?id=62864&edit=1
ID: 62864 Updated by: ahar...@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