[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78663] [Ruby trunk Bug#13036] Date.parse mishandling spanish months "Abril y Agosto"
From:
zverok.offline@...
Date:
2016-12-15 14:56:23 UTC
List:
ruby-core #78663
Issue #13036 has been updated by Victor Shepelev.
AFAIK, Date.parse was NEVER intending to parse anything except English/American dates in English/American formats. Parsing dates internationally is waaaay harder than making dictionaries of month names: different cultures have different (often incompatible) date formats. Take a look at this list, for ex: https://en.wikipedia.org/wiki/Date_format_by_country
International date parser is a cool idea for standalone gem, but I don't think it could be ever expected to be in stdlib.
----------------------------------------
Bug #13036: Date.parse mishandling spanish months "Abril y Agosto"
https://bugs.ruby-lang.org/issues/13036#change-62043
* Author: Gonzalo Reutter
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.3.0
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
### Steps to reproduce
$ irb
2.3.0 :003 > Date.parse("01-Agosto-2016")
=> 01 Dec 2016
2.3.0 :004 > Date.parse("01-Abril-2016")
=> 01 Dec 2016
### Expected behavior
2.3.0 :003 > Date.parse("01-Agosto-2016")
=> 01 Aug 2016
2.3.0 :004 > Date.parse("01-Abril-2016")
=> 01 Apr 2016
### Actual behavior
"Agosto" is parsed to December
"Abril" is parsed to December.
### System configuration
Ruby 2.3.0
Would much like to fix this myself, should be straight forward, but I'm a hobby developer and have never contributed to a project.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>