ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50926] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c"
@ 2020-04-07 12:45 dmikurube
  2020-07-25  2:56 ` [ruby-dev:50936] " nagachika00
  2021-04-04 22:41 ` [ruby-dev:51043] " usa
  0 siblings, 2 replies; 3+ messages in thread
From: dmikurube @ 2020-04-07 12:45 UTC (permalink / raw)
  To: ruby-dev

Issue #16767 has been reported by dmikurube (Dai MIKURUBE).

----------------------------------------
Bug #16767: Time#strftime not working correctly with a big precision on recurred formats like "%c"
https://bugs.ruby-lang.org/issues/16767

* Author: dmikurube (Dai MIKURUBE)
* Status: Open
* Priority: Normal
* ruby -v: 2.7.0
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
Confirmed on: Ruby 2.6.3 and 2.7.0 on Mac OS X 10.13.

```
require 'time'
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:50936] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c"
  2020-04-07 12:45 [ruby-dev:50926] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c" dmikurube
@ 2020-07-25  2:56 ` nagachika00
  2021-04-04 22:41 ` [ruby-dev:51043] " usa
  1 sibling, 0 replies; 3+ messages in thread
From: nagachika00 @ 2020-07-25  2:56 UTC (permalink / raw)
  To: ruby-dev

Issue #16767 has been updated by nagachika (Tomoyuki Chikanaga).

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.

----------------------------------------
Bug #16767: Time#strftime not working correctly with a big precision on recurred formats like "%c"
https://bugs.ruby-lang.org/issues/16767#change-86716

* Author: dmikurube (Dai MIKURUBE)
* Status: Closed
* Priority: Normal
* ruby -v: 2.7.0
* Backport: 2.5: REQUIRED, 2.6: REQUIRED, 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-dev:51043] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c"
  2020-04-07 12:45 [ruby-dev:50926] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c" dmikurube
  2020-07-25  2:56 ` [ruby-dev:50936] " nagachika00
@ 2021-04-04 22:41 ` usa
  1 sibling, 0 replies; 3+ messages in thread
From: usa @ 2021-04-04 22:41 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-04 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 12:45 [ruby-dev:50926] [Ruby master Bug#16767] Time#strftime not working correctly with a big precision on recurred formats like "%c" dmikurube
2020-07-25  2:56 ` [ruby-dev:50936] " nagachika00
2021-04-04 22:41 ` [ruby-dev:51043] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).