Bug #76513 [NEW]: locale for day of week
From: jluc at no-log dot org
Operating system: linux
PHP version: 7.2.6
Package: *General Issues
Bug Type: Bug
Bug description:locale for day of week
Description:
------------
---
From manual page: http://www.php.net/function.strftime
---
"Format the time and/or date according to locale settings. Month and
weekday names and other language-dependent strings respect the current
locale set with setlocale()."
BUT day of week are allways english, whatever the locale
The given example is :
setlocale(LC_TIME, "fr_FR");
echo strftime(" in French %A and");
but the output is not displayed in http://www.php.net/function.strftime
AMOF, output is
in French Thursday and Thu
Which is not the expected : "in French Jeudi and Jeu"
Expected result:
----------------
Either documentation is wrong and setlocale is not efficient with
dayofweeks names
Either this is a bug
Anyway, the output for this example should be included in the
documentation (not only the PHP source) as it's done for other examples.
--
Edit bug report at https://bugs.php.net/bug.php?id=76513&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76513&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76513&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76513&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76513&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76513&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76513&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76513&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76513&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76513&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76513&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76513&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76513&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76513&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76513&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76513&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76513&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76513&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76513&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76513&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76513&r=mysqlcfg
Thread (7 messages)
- jluc at no-log dot org