strftime() returns insufficient-length string under multibyte locales
| Bug #65184 | strftime() returns insufficient-length string under multibyte locales | ||||
|---|---|---|---|---|---|
| Submitted: | 2013-07-02 15:50 UTC | Modified: | 2013-07-03 20:55 UTC | ||
| From: | k-yamashita at ver2 dot jp | Assigned: | ab (profile) | ||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 5.5.0 | OS: | Windows | ||
| Private report: | No | CVE-ID: | None | ||
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2013-07-03 07:32 UTC] ab@php.net
-Assigned To: +Assigned To: ab
[2013-07-03 09:25 UTC] ab@php.net
-Status: Assigned +Status: Closed
[2013-07-03 09:30 UTC] ab@php.net
[2013-07-03 19:17 UTC] k-yamashita at ver2 dot jp
It works fine. Thanks a lot! Well, checking byte values will fail if unit test is performed on other than Wednesday. I suggest just checking the length. --FILE-- <?php setlocale(LC_ALL, 'Japanese_Japan.932'); echo strlen(strftime('%A')) . "\n"; ?> ===DONE=== --EXPECT-- 6 ===DONE===[2013-07-03 20:55 UTC] ab@php.net