php.net |  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
Votes:6
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pierrelouis dot peeters at gmail dot com
New email:
PHP Version: OS:

 

 [2012-08-19 09:44 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-20 01:41 UTC] aharvey@php.net
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] aharvey@php.net
-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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 02:01:30 2024 UTC