|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62864 strftime("%A") with locale set to french outputs date with capital letter
Submitted: 2012-08-19 09:44 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:3.3 ± 0.7
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: pierrelouis dot peeters at gmail dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.4Git-2012-08-19 (snap) OS: Unix
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-08-19 09:44 UTC] pierrelouis dot peeters at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-20 01:41 UTC]
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).
 [2012-08-20 01:41 UTC]
-Status: Open +Status: Feedback
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Oct 23 09:03:33 2021 UTC