From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 9C3731F4B4 for ; Sun, 4 Apr 2021 22:41:49 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 325CF120CB5; Mon, 5 Apr 2021 07:40:49 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id B666B120CB4 for ; Mon, 5 Apr 2021 07:40:47 +0900 (JST) Received: by filterdrecv-p3las1-699f5f7ff5-zpgll with SMTP id filterdrecv-p3las1-699f5f7ff5-zpgll-19-606A40A6-C 2021-04-04 22:41:42.260284684 +0000 UTC m=+1051720.133165555 Received: from herokuapp.com (unknown) by ismtpd0163p1iad2.sendgrid.net (SG) with ESMTP id wC21F2tsR8SMhMCmv6_pmg for ; Sun, 04 Apr 2021 22:41:42.077 +0000 (UTC) Date: Sun, 04 Apr 2021 22:41:42 +0000 (UTC) From: usa@garbagecollect.jp Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 79256 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 16767 X-Redmine-Issue-Author: dmikurube X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?9Ij0W+xF+66shKwcOf8RvdqxJGkEJjaCZuueI4cieuD+9a+QfUK2QhPdIMfpcj?= =?us-ascii?Q?c6moYZLqQrkHU9j0P8uhlILDX=2Fb=2FvrycMjxLwXi?= =?us-ascii?Q?aM0YHTjCn8KA1vTvNSu4xXEoZ08uokxw2CgAo8G?= =?us-ascii?Q?Ezxtu4RId1VGBKMiFKECj8eydIIxBiuiw+w291w?= =?us-ascii?Q?B=2FIwvcMGFXJSGJIhB4zDCMsOU=2FUJQ3nbrKyY5f0?= =?us-ascii?Q?CBQmH7ZEVhcBG35NQ=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51043 Subject: [ruby-dev:51043] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c" X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: "Ruby developers \(Japanese\)" List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" 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/