Project

General

Profile

Actions

Bug #16767

closed

Time#strftime not working correctly with a big precision on recurred formats like "%c"

Bug #16767: Time#strftime not working correctly with a big precision on recurred formats like "%c"

Added by dmikurube (Dai MIKURUBE) over 5 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:50926]

Description

Confirmed on: Ruby 2.6.3 and 2.7.0 on Mac OS X 10.13.

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.

Updated by nobu (Nobuyoshi Nakada) over 5 years ago Actions #1

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED

Updated by nobu (Nobuyoshi Nakada) over 5 years ago Actions #2

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) over 5 years ago Actions #3

  • Status changed from Open to Closed

Applied in changeset git|2f1895fa15386fb3cdc91c5604171290828b9da8.


Fixed formatted substring expansion [Bug #16767]

Updated by nagachika (Tomoyuki Chikanaga) about 5 years ago Actions #4 [ruby-dev:50936]

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: REQUIRED to 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE

ruby_2_7 2e9626fddd168bd12352b4f5dc3412c6a33ce44e merged revision(s) 2f1895fa15386fb3cdc91c5604171290828b9da8.

Updated by usa (Usaku NAKAMURA) over 4 years ago Actions #5 [ruby-dev:51043]

  • Backport changed from 2.5: REQUIRED, 2.6: REQUIRED, 2.7: DONE to 2.5: REQUIRED, 2.6: DONE, 2.7: DONE
Actions

Also available in: PDF Atom