ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50927] [Ruby master Bug#16768] "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0
@ 2020-04-07 12:50 dmikurube
  2020-04-11  0:24 ` [ruby-dev:50928] " merch-redmine
  0 siblings, 1 reply; 2+ messages in thread
From: dmikurube @ 2020-04-07 12:50 UTC (permalink / raw)
  To: ruby-dev

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

----------------------------------------
Bug #16768: "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0
https://bugs.ruby-lang.org/issues/16768

* 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.7.0 on Mac OS X 10.13.

```
require 'date'
DateTime._strptime("aus\neastern standard time", "%z")
```

Expected (Ruby 2.6.3 works like this):

```
=> {:zone=>"aus\neastern standard time", :offset=>36000}
```

Actual on Ruby 2.7.0 :

```
=> {:zone=>"aus\neastern standard time", :offset=>nil}
```

Appendix:

* A space character case, such as `"aus eastern standard time"`, still works on Ruby 2.7.0.




-- 
https://bugs.ruby-lang.org/

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

* [ruby-dev:50928] [Ruby master Bug#16768] "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0
  2020-04-07 12:50 [ruby-dev:50927] [Ruby master Bug#16768] "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0 dmikurube
@ 2020-04-11  0:24 ` merch-redmine
  0 siblings, 0 replies; 2+ messages in thread
From: merch-redmine @ 2020-04-11  0:24 UTC (permalink / raw)
  To: ruby-dev

Issue #16768 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Rejected

This seems more like a bugfix than a regression to me, even if the change was unintended.  Is there a reason you would want the previous behavior?  In any case, issues in the date library should be filed upstream: https://github.com/ruby/date/issues

----------------------------------------
Bug #16768: "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0
https://bugs.ruby-lang.org/issues/16768#change-85039

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

```
require 'date'
DateTime._strptime("aus\neastern standard time", "%z")
```

Expected (Ruby 2.6.3 works like this):

```
=> {:zone=>"aus\neastern standard time", :offset=>36000}
```

Actual on Ruby 2.7.0 :

```
=> {:zone=>"aus\neastern standard time", :offset=>nil}
```

Appendix:

* A space character case, such as `"aus eastern standard time"`, still works on Ruby 2.7.0.




-- 
https://bugs.ruby-lang.org/

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

end of thread, other threads:[~2020-04-11  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 12:50 [ruby-dev:50927] [Ruby master Bug#16768] "\n" started not to work as a delimiter in time zone names for Date._strptime since 2.7.0 dmikurube
2020-04-11  0:24 ` [ruby-dev:50928] " merch-redmine

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).