Req #62864 [Fbk->NoF]: strftime("%A") with locale set to french outputs date with capital letter
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:35:59 +0000 |
| Subject: | Req #62864 [Fbk->NoF]: 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-177121@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: php-bugs@lists.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: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: Date/time related
Operating System: Unix
PHP Version: 5.4Git-2012-08-19 (snap)
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-08-20 01:41:47] 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-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