From: usa@... Date: 2021-04-04T22:41:42+00:00 Subject: [ruby-dev:51043] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c" Issue #16767 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE to 2.5: REQUIRED, 2.6: DONE, 2.7: DONE backported into ruby_2_6 at r67915 ---------------------------------------- Bug #16767: Time#strftime not working correctly with a big precision on recurred formats like "%c" https://bugs.ruby-lang.org/issues/16767#change-91288 * Author: dmikurube (Dai MIKURUBE) * Status: Closed * Priority: Normal * ruby -v: 2.7.0 * Backport: 2.5: REQUIRED, 2.6: DONE, 2.7: DONE ---------------------------------------- Confirmed on: Ruby 2.6.3 and 2.7.0 on Mac OS X 10.13. ```ruby Time .now .strftime("%28c") ``` Expected: ``` " Tue Apr 7 12:44:16 2020" ``` Actual: ``` " \u0000ue Apr 7 12:44:16 2020" ``` Appendix: * For `"%c"`, 26 worked, but 27+ did not work. * Confirmed similar for other recurred formats like `"%R"`, `"%F"`, and else. -- https://bugs.ruby-lang.org/